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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Top 3 Chart - Aggr + Rank + Set Analysis

Gents,

I'm struggling in create a new line chart with my "top 3" ranking data.

My goal is figure out the top "3" customers for each period and plot in a chart, as the picture below.

I think I'm closer to the solution using Aggr+Rank, but my results does not match yet. Any clue in the final expression?

Thanks in advance.

linechart.jpg

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try an expression in your line chart like

=Sum( Aggr( If(Rank(Sum( Value)) <=3, Sum(Value)),  Month, Customer))

edit: changed Aggr() dimension order.

View solution in original post

3 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Fabio,

Can you please attach your qvw file?

Thanks,

MB

swuehl
MVP
MVP

Try an expression in your line chart like

=Sum( Aggr( If(Rank(Sum( Value)) <=3, Sum(Value)),  Month, Customer))

edit: changed Aggr() dimension order.

sunny_talwar

May be this:

Expression: =Sum(Aggr(If(Rank(Value, 0, 1) <= 3, Value), Month, Customer))

Capture.PNG