Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Save the Date: QlikWorld Online, June 24-25, 2020. Free global virtual event for data integration and data analytic gurus. Register Today
Highlighted
Contributor

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
Highlighted

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

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
Highlighted

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

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

Highlighted
Honored Contributor II

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

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

Highlighted
Contributor

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

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

Highlighted

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

Did you look at what I provided?

Highlighted
Contributor

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

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.

Highlighted
Contributor

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

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

Highlighted

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

What do you mean, can you elaborate?

Highlighted
Contributor

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

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