Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
afbraga1
Creator
Creator

Num() format for positive/negative values along with symbols

Hello, I am trying to attribute symbols (up/down triangle) when formatting a number with the num() function. I mange to get the correct values (333%)  when I place the chr() symbols before the format type, but not when I place them after (I get 3%). I don't seem to find what's wrong and the correct nomenclature. May someone shed a light and help here, please? Can check this on my example below. Thank you!

1 Solution

Accepted Solutions
sunny_talwar

Not sure why it behaves this way, but a work around

=num(10*100/3, '##0%' & CHR(9650) & ';' & '##0%' & CHR(9660))

View solution in original post

8 Replies
sunny_talwar

Not sure why it behaves this way, but a work around

=num(10*100/3, '##0%' & CHR(9650) & ';' & '##0%' & CHR(9660))

devarasu07
Master II
Master II

Hi,

Have you tried like this?

=Num(10/3,'▲ #,##0;▼ #,##0')

and add your text color expression as

if(10/3=1,Green(),Red())

Capture.JPG

afbraga1
Creator
Creator
Author

My issue is that I want the symbols before not after the format type

sunny_talwar

Did you look at what I provided?

afbraga1
Creator
Creator
Author

Strangely it works yeah . I thought it wasn't gonna work because in my real cases it ended up giving me 0 as a value, but apparently multiplying by 100 makes it return the correct value again.

afbraga1
Creator
Creator
Author

Any idea if the format can be extended to evaluate null values?

sunny_talwar

What do you mean, can you elaborate?

afbraga1
Creator
Creator
Author

Ah nevermind, it didn't make sense what I was thinking. For a sec I totally forgot about the Null Symbol in Presentation tab.