Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
su_pyae
Creator
Creator

Positive and negative signs in front of numbers

Hello everyone, 

I am using Waterfall Chart from Vizlib and I want +/- signs in front of my numbers. 

I tried using Format pattern but it only shows me - sign, not + sign. 

Am I doing something wrong here or is there any other ways to have + sign in front of numbers in the charts? 

Thank you for your help!

su_pyae_1-1646938641427.pngsu_pyae_2-1646938680900.png

 

 

Labels (3)
1 Solution

Accepted Solutions
anthonyj
Creator III
Creator III

Hi @su_pyae ,

Try adding your measure like this:

num(sum(Field),'+##0; -##0')

I used this with Qlik's out of the box waterfall chart and it allocated + and - correctly

anthonyj_0-1646970200857.png

 

Thanks

Anthony

View solution in original post

4 Replies
anthonyj
Creator III
Creator III

Hi @su_pyae ,

Try adding your measure like this:

num(sum(Field),'+##0; -##0')

I used this with Qlik's out of the box waterfall chart and it allocated + and - correctly

anthonyj_0-1646970200857.png

 

Thanks

Anthony

su_pyae
Creator
Creator
Author

Hi Anthony, 

First of all, thank you for your answer. I haven't thought of using Num() to change the format before.

I am pretty sure your formula will work but it's not working in Vizlib waterfall chart. 

I think it might be a bug. 

anthonyj
Creator III
Creator III

Hi @su_pyae ,

Possibly, I don't have vizlib so I can't do a direct test. There may be something in the Vizlib documentation about using the NUM() function.

Regards

Anthony

su_pyae
Creator
Creator
Author

Guess this one is impossible in Vizlib Qlik Sense. 

They told me that they don't have this feature for now. 

Thank you for your help, Anthony!