Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Qliksand
Contributor
Contributor

Number Formatting Issue with ,'#,##0')

Hi,

I am trying to format an outcome as a percentage using ,'#,##0').

Script is:

= 'x' &'

'&
SUM (if(C = 'Y',DX))& ' '&

'('& SUM (if(C = 'Y',X))
/
SUM (if(C = 'Y',Z) ,'#,##0')

 

Any hints to why I would be seeing an error in expression? 

Thanks!

Labels (1)
1 Solution

Accepted Solutions
Digvijay_Singh

You cannot do like this, formatting in Qlik is done using NUM() function and that is missing over here, its used something like this - Num(Sum(Value),'#,##0').

In your case the format string is not attached to any single value as well, so may be you need to do like this - 

= 'x' &'

'&
SUM (if(C = 'Y',DX))& ' '&

'('& NUM(SUM (if(C = 'Y',X))
/
SUM (if(C = 'Y',Z) ,'#,##0%')

View solution in original post

2 Replies
Digvijay_Singh

You cannot do like this, formatting in Qlik is done using NUM() function and that is missing over here, its used something like this - Num(Sum(Value),'#,##0').

In your case the format string is not attached to any single value as well, so may be you need to do like this - 

= 'x' &'

'&
SUM (if(C = 'Y',DX))& ' '&

'('& NUM(SUM (if(C = 'Y',X))
/
SUM (if(C = 'Y',Z) ,'#,##0%')

Qliksand
Contributor
Contributor
Author

That's perfect, thank you so much!