Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Top and Bottom in Bar Chart

Hi all,

i calculated stock index rotation with this expression :

=(sum(aggr(SUM({$<DT_DATE={'>$(vMinDate)<=$(vMaxDate)'},DS_TYPE_SHIP={'3'}>} (NR_MOVED_AMOUNT_OUT+NR_CORRECTION)),DT_DATE,DS_COMMENT)) )

/

(SUM({<DT_DATE={'$(vMaxDate)'},DS_TYPE_SHIP={'3'}>} NR_STOCK_AVAILABLE)/365)

Now i want two bar chart that show me top and bottom 5 Category Product with higher and lower index rotation.

How can i do?

Thank you

Francesca

3 Replies
swuehl
MVP
MVP

Try creating a bar chart with your dimension you want to show (Category?) and then use dimension limits to limit dimension to largest / smallest 5 values.

sinanozdemir
Specialist III
Specialist III

Hi,

Try to put your function in:

Aggr(Rank(and your sum), NR_STOCK_AVAILABLE) <= 5 --- for top 5

Aggr(Rank(-and your sum), NR_STOCK_AVAILABLE) <= 5 -- for bottom 5


Hope that helps.

Not applicable
Author

I try but doesn't work.