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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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 (2)
1 Solution

Accepted Solutions
Digvijay_Singh
MVP
MVP

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
MVP
MVP

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!