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: 
ronman10
Creator
Creator

How to Calculate Contribution towards Sales

Hello All!

I have countrywise sales data for 2018 and 2019 in a table. I would like to calculate countrywise contribution towards total sales for the 2 years respectively. I would like the expression to be year specific. Please advice

 

Best Regards,

Rony

1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

SUM({<yEAR={'2018','2019'}>} SALES)

/

SUM(TOTLA {<yEAR={'2018','2019'}>} SALES)

Channa

View solution in original post

4 Replies
Channa
Specialist III
Specialist III

SUM({<yEAR={'2018','2019'}>} SALES)

/

SUM(TOTLA {<yEAR={'2018','2019'}>} SALES)

Channa
asinha1991
Creator III
Creator III

make country dimension in your chart and use this exp

sum({<year={2019}>}sales)/sum({<year={2019}>}Total sales)*100

if you want for all years ,add years as dimension along  with country.

 

 

 

ronman10
Creator
Creator
Author

Thank you Channa

ronman10
Creator
Creator
Author

thank you