Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
muujguu21
Contributor
Contributor

How to calculate 'Sales share' expression: Set or Aggr?

Hi Experts - Kindly find attached my qvw file..

I have a simple monthly sales data. So, I need to calculate Manufactures share by month. I have tried with expression like =sum(Sales)/sum(Total Sales)*100, It works fine when i selected all Manufactures or Brands. But if i select 2 or 3 Brands then shares has calculated from those 3 brands.

I am sorry about my poor English. I have prepared a template with my QVW file.

2 Replies
Anil_Babu_Samineni

Looks like working. What is the issue?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be you need this

Sum([Sales (L)])/Sum(Total {<Manufactures, Brands>} [Sales (L)])*100