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: 
Anonymous
Not applicable

top 5 shipments that are ontime

Hi Guys,

I'm trying to create a bar chart where I have the top 5 shipments that are ontime.

I've used Ctry (Country) as my Dimension

and

"if(Aggr(rank(Count(Order)),Ctry, Status)<=5, count(Order))  / Count(total Order)" as my expression. I think that there is something wrong with my expression, as I'm not getting the right results. I've looked at the sort tab, it's sorted desending by Y-value.

I've attached a qlikview sample. hope some one can help me out.

Thanks in advance!

iSam

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi iSam,

maybe like attached? Check out the sort order expression:

=rank(count({<Status={OnTime}>}Order))

Hope this helps,

Stefan

View solution in original post

3 Replies
swuehl
MVP
MVP

Hi iSam,

maybe like attached? Check out the sort order expression:

=rank(count({<Status={OnTime}>}Order))

Hope this helps,

Stefan

Anonymous
Not applicable
Author

Many thanks Stefan!!! That indeed did the job!

iSam

swuehl
MVP
MVP

I think you can also simplify your expression then to count(Order) / count(total Order), I forgot to change this in my sample above.