Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
RMQLIKUSER
Contributor II
Contributor II

Bottom 10 in a bar chart excluding zeros

Hi,

I am trying to get bottom 10 stores on a bar chart based on the total sales but would like to exclude the store which shows 0 sales.

For example

StoreSales
A10
B20
C40
D30
E90
F0
G0
H0
I0
J0

In this case if i try to show the bottom 5, i would get the results with F G H I J but instead i would like to see A B D C E. How can i achieve this?

Tried using data handling> uncheck zero values..but no results

2 Replies
sunny_talwar

May be use this expression

Sum({<Store = {"=Sum(Sales) > 0"}>}Sales)

NZFei
Partner - Specialist
Partner - Specialist

Sum({<Store={"=sum(Sales)>0 and rank(1/sum(Sales))<=5"}>}Sales)