cancel
Showing results for 
Search instead for 
Did you mean: 

Formula to determine the sign of a number

Former Member
0 Kudos

Hi All,

Can anyone please give me an idea to write the formula for the following logic in BEx?

If X is negative then display zero

If X is positive then display zero

these are for 2 different formule to check if a particular field has a negative number it should be posted in one column and if the number is positive it should be posted in the other column.

Thanks

Prasad

Accepted Solutions (1)

Accepted Solutions (1)

former_member183777
Active Contributor
0 Kudos

(X< 0)0 + (X>0)X for the first case and just reverse the signs for the second case

Former Member
0 Kudos

It's working

Thanks

Answers (0)