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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Totals per Customer / Country

I want to calculate the % sales per customer compared to the total sales of his country ?¨

Please can someone advise how to do this ?

Labels (1)
6 Replies
sparur
Specialist II
Specialist II

If I understand your task, you can create expression like this:

sum(Amount) / sum(TOTAL <Country> Amount)

and dimensions: Country, Customer

Not applicable
Author

I do not want to use country as dimension ? Because he want a list of customers.



Not applicable
Author

They want also to select sometimes one customer ?

sparur
Specialist II
Specialist II

so you shoul use AGGR function , see in attachment example

Not applicable
Author

THX It's working correctly.

Not applicable
Author

I think this may be the solution:

sum(Amount) / aggr(sum(Amount), Country)