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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Format within an expression

I am working on an expression where I am attempting to show the percent.  However the requirement has changed to show the numerator, denominator and the percent all within the same column.  I can get this to work but cannot figure out how to then format the percent calculation piece to only show 2 decimal places.  Any ideas?  I could probably split this into 2 columns but would need the expression title to be spread over both columns and I am not sure how to accomplish that.  This is all being done in a pivot table.  Thanks in advance!

1 Solution

Accepted Solutions
shree909
Partner - Specialist II
Partner - Specialist II

Hi,

num(ur expression,'#,##.#0%')   this will give 12.23%  depending on ur expression

View solution in original post

2 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Hi,

num(ur expression,'#,##.#0%')   this will give 12.23%  depending on ur expression

Not applicable
Author

Thanks, this worked our perfectly.  I only modified the last 0 to a # in the formatting to get the correct rounding.