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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

1 Solution

Accepted Solutions
rubenmarin

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

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!