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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Calculate percentage of total for each month

Hi All,

I have a combo chart with two dimensions. One is for month year and category.

The expression what i have written is :

sum(IB)/sum(TOTAL<[Month-Year]> IB)

This expression is working fine at over all level. But when i filter category, the numbers are changing to 100%.

Can you please tell me where i am doing wrong

Thanks,

Bharat

1 Solution

Accepted Solutions
tresesco
MVP
MVP

If you want to check category% on selection of them, try like:

sum(IB)/sum(TOTAL<[Month-Year]> {<Category>} IB)

View solution in original post

4 Replies
tresesco
MVP
MVP

If you want to check category% on selection of them, try like:

sum(IB)/sum(TOTAL<[Month-Year]> {<Category>} IB)

bharatkishore
Creator III
Creator III
Author

Thank you so much.

I have given like

sum(IB)/sum(TOTAL<[Month-Year],cat> IB).. But it didn't work.

Can you please tell mw diff between the two expressions.

tresesco
MVP
MVP

Category in your expression would be considered to ignore the chart dimension members (in this case: both the dimensions mentioned in total scope is equivalent to mentioning no 'total'). Whereas, in my expression, category dimension selection is ignored to calculate the total (to be used as denominator).

bharatkishore
Creator III
Creator III
Author

Thank you for your reply..got it now.. thanks a lot..