Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Percentage calculation by Set Analysis

I have this

Percentage calculation.png

And the Mesure is calculated by

Sum(SaleAmount)/SUM(total SaleAmount)

But what I really want is that each category has its own 100%, and not the 100% of all the categories

Does anyone knows how to do it by Set Analisys?

Thanks

MAC

2 Replies
rubenmarin

Hi Martha, if the x-axis dimension is 'Category' you can use this expression:

Sum(SaleAmount)/SUM(total <Category> SaleAmount)

jagan
Luminary Alumni
Luminary Alumni

Hi,

Check this expression

Sum(SaleAmount)/SUM(TOTAL <Category> SaleAmount)


Note: Replace Category with your actual field name.


Hope this helps you.


Regards,

Jagan.