Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Zero value is getting displayed in brackets? Could you please help to solve this, Since I have written a condition like, If (value=0, Green, Red)

Zero.JPG

1 Solution

Accepted Solutions
arulsettu
Master III
Master III

try this

if(value='0',green(),red())

View solution in original post

15 Replies
arulsettu
Master III
Master III

try this

if(value='0',green(),red())

sushil353
Master II
Master II

Hi,

Try this:

if(Fabs(Diff)>0,Green(),Red())

awhitfield
Partner - Champion
Partner - Champion

Hi Anees,

could it be that the value is actually negative and rounded to zero, and the number format mask applied has negative is brackets? e.g.  #.##0,00; (#.##0,00)

HTH - Andy

Not applicable
Author

nop it did'nt worked

Not applicable
Author

But I want it when it is = to zero. then how come >

Not applicable
Author

Yep, But when i created in another table it is showing like below:Zero2.JPG

MayilVahanan

Hi

Try like this

Ceil(ur expression)

i.e. Ceil(A-B)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Yeah it worked, Thanks a bunch.

But will it effect my further development, if I have 179999.997?

it will be giving only 179999 ryt?

MayilVahanan

Hi,

Then you can go for Round() or Floor() function.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.