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: 
Not applicable

Expression Total

Hi,

I need help with the Expression total, how do I get it to be 21,25% instead of 63,90%?

Ssum(P)*sum(T)SUM(P)Column(1) / Column(2)
424,902 000,0063,90%21,25%
a275,601 300,0021,20%
b106,50500,0021,30%
c42,80200,0021,40%

/J

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

You can change the last expression to:

If(Dimensionality()=0, sum(aggr(sum(P)*sum(T), S))/Sum(P),

Column(1) / Column(2))

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Here it is

rubenmarin
MVP
MVP

You can change the last expression to:

If(Dimensionality()=0, sum(aggr(sum(P)*sum(T), S))/Sum(P),

Column(1) / Column(2))

Not applicable
Author

Sorry, I need to be more precise. I would like it to show 424,9 / 2000 = 0,21245 or 21,245%

Not applicable
Author

Fantastic - Thank you!