Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
madmax88
Creator II
Creator II

Sort cumulative sales by Advisor

Hi,

Is it possible to get a bar chart with the cumulative sum by advisor? Highest Sales first.

E.g.

Advisor 110
Advisor 215
Advisor 31
Advisor 45
Advisor 520
Advisor 650
Advisor 70
Advisor 8-5

 

Result (in a bar chart)

Advisor 650
Advisor 570
Advisor 285
Advisor 195
Advisor 4100
Advisor 3101
Advisor 7101
Advisor 896

 

And 2nd. Question: Is it also possible to show the cumulative sum in percentage?

((B5/Sum(B$4:B$11))+D4)

(B6/SUMME(B$4:B$11))+D5

etc.

Advisor 6 52% (D4)
Advisor 5 73% (D5)
Advisor 2 89% (D6)
Advisor 1 99% (D7)
Advisor 4 104% (D8)
Advisor 3 105% (D9)
Advisor 7 105% (D10)
Advisor 8 100% (D11)

 

1 Solution

Accepted Solutions
Patrik_Lundblad
Employee
Employee

How about this?

RangeSum(Above(Sum(Sales)/Sum(total Sales), 0, RowNo()))

 

Relative.PNG

Patrik.

View solution in original post

8 Replies
madmax88
Creator II
Creator II
Author

the expression is a set analyisis expression:

sum({<Type={'X'}>}Sales)

tresesco
MVP
MVP

Like this?

1.PNG

2.PNG

3.PNG

madmax88
Creator II
Creator II
Author

Yes, like this, but I don't habe the Modifier (accumulation) in Qlik Sense. Ist this in a newer Qlik Sense version?

tresesco
MVP
MVP

Yes, try the latest one, i.e. - Nov 2019

Patrik_Lundblad
Employee
Employee

Hi,

Yes that's from the November 2019 release, but the good part is that we do have an "output expression" box where you can copy paste the expression used for accumulation. 

Output.PNG

So given that you make the sorting change as shown above then paste this as your measure (replace the Sum(Sales) with your set expression)

 

RangeSum(Above(Sum(Sales), 0, RowNo()))

Not sure how to do the cumulative percentage.

Regards,

Patrik.

madmax88
Creator II
Creator II
Author

worked, thank both!

But how can I show the relative sum(Question 2)?

Patrik_Lundblad
Employee
Employee

How about this?

RangeSum(Above(Sum(Sales)/Sum(total Sales), 0, RowNo()))

 

Relative.PNG

Patrik.

madmax88
Creator II
Creator II
Author

Worked,Thanks