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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Subtotal of Percentage

Hi I have a question,

i have a data like this:

percen.png

the problem is on subtotal of percentage. I'm using partial sum on Brand dimension, and use sum(Percen) as expression. I don't want use sum(quantity2)/sum(quantity1) as expression in order to make data load faster, so i user sum(percen) directly.

But the total i expect is 6 (total of qty1) / 25 (total of qty2) = 0.24 ---------->24 %

Is it possible to make it without change the percen expression ?

Thanks

6 Replies
Not applicable
Author

I also attach my sample file here.

Thanks

sunny_talwar

Try this for your third expression may be

Sum(Aggr(Sum(QUANTITY1), Brand))/Sum(Aggr(Sum(QUANTITY2), Brand))


Sum(Aggr(Sum(QUANTITY2), Brand))/Sum(Aggr(Sum(QUANTITY1), Brand))

Not applicable
Author

HI

PFA

Thanks

Manju

sunny_talwar

Even this one works:

Sum(QUANTITY2)/Sum(QUANTITY2)

Capture.PNG

Not applicable
Author

Hi Sunny.

I've try your solution and it runs very well, but the problem is in load performance. The data load very slow. So i decide to directly use sum(percen) in order to not counting sum(quantity2)/sum(quantity1).

Is it possible to not change the percen expression ?

Thank you

PrashantSangle

Hi,

Try Column(1)/Column(2)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂