Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Percentage symbol

Hi All

I have a field

I need to show % at end of values like (0.21)%. i set it in Number properties, also used num(Expression,'#.##0,00%') but its not working ,any expression level script or properties to change?


Regards


1 Solution

Accepted Solutions
Not applicable
Author

This worked for me.

=if([Field (%)]/100<=0,0,

if([Field(%)]/100<1, '(' &[Field(%)]/100  ')' & '%',

if([Field(%)]/100>1,[Field(%)]/100)))

View solution in original post

30 Replies
MK_QSL
MVP
MVP

Num(Expression,'#0.00%')

Peter_Cammaert
Partner - Champion III
Partner - Champion III

How do you add parentheses to the small values? Are those negative values? In that case, add the % symbol to the format string in the Numbers tab.

Not applicable
Author

No its not working

my Expression is

=Num(if([Field (%)]/100<=0,0,

if([Field(%)]/100<1, '(' &[Field(%)]/100& ')',

if([Field(%)]/100>1,[Field(%)]/100))))

Not applicable
Author

Its default value if less than 0% will get parentheses.

Added % at num properties used but not working.

Not applicable
Author

Hi,

You can set in number tab like this.

Untitled.png

Not applicable
Author

right but it showing to the values equal are more than 0%. like 0.00%, not to the values below Zero % which are in parentheses should be like (0.21)%

MK_QSL
MVP
MVP

Remove /100 and try it...

Not applicable
Author

Hi,

You can arrange in Fixed to 1 or 2 or 3.......

anbu1984
Master III
Master III

=if([Field (%)]/100<=0,0,

if([Field(%)]/100<1, '(' &[Field(%)]/100& ')',

if([Field(%)]/100>1,[Field(%)]/100))) & '%'