Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
salleninsd
Creator
Creator

Sum GM% in Stacked Bar

Hello,

I am looking for the syntax to aggregate the total GM% in a stacked bar. If I drill down to one customer, the GM% is correct.  When all are selected, it is adding all the GM% numbers up, together.  Not sure of the correct syntax in the expression?

Thanks in advance for any advise!

sum(NetRevenue)/sum(TotalRevenue)

10 Replies
salleninsd
Creator
Creator
Author

Sorry, I meant to tell you that Net Revenue = Total Revenue minus Cost

Thanks again, you are both my heroes!