Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Negative Zero

In a staright chart, the expression default is:

-0.0004699869

I selected, Fixed To 1 Decimal and Show in Percent (%) under Number tab

and it becomes:

-0.0%

Is it possible that after this number formatting, if the result is 0, it shows up as:

0% in chart ?

4 Replies
Gysbert_Wassenaar

Yes, specify a format pattern that includes a format to display negative numbers without the - sign. For example #.0;#.0


talk is cheap, supply exceeds demand
nagaiank
Specialist III
Specialist III

Use Floor(Fabs(expression))

swuehl
MVP
MVP

You probably want to show larger negative numbers still with a minus sign and with 1 decimal.

You can specify the format in your expression, leaving the numbers tab option on expression default, something like

=if(fabs(VALUE)<5E2, num(0 ,'0%'), num(VALUE ,'0,0%') )

Anonymous
Not applicable
Author

Thank you all for your reponses.