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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
DGAL1
Contributor III
Contributor III

Set analysis of % contribution

How do i write the % contribution of the top 3 months towards their own

total in qlik sense , below is the screenshot of the excel i calculated  on my own

Momo111_1-1708001302328.png

 

 

Labels (2)
4 Replies
TheoAtragie
Partner - Specialist
Partner - Specialist

Try this :

sum({<MONTH={"=aggr(rank([Total sales],1,1),MONTH)<=3"}>} sales) /

sum({<MONTH={"=aggr(rank([Total sales],1,1),MONTH)<=3"}>} TOTAL sales)

Kind regards,
Théo ATRAGIE.

Chanty4u
MVP
MVP

Try this

Sum({< %Date = {"=Rank(Sum(QM)) <= 3"}>} QM) / Sum(TOTAL<QM> QM)

 

TheoAtragie
Partner - Specialist
Partner - Specialist

This formula will give the % over all months only for the first 3 months. To reproduce the fourth column of the attached table, the set analysis must be extended from the numerator to the denominator.

Kind regards,
Théo ATRAGIE.

TheoAtragie
Partner - Specialist
Partner - Specialist

In the attached table it was the top per month, hence the formula.
Can you assign a solution to one of the answers in order to close the topic?