Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
usman7vt
Contributor II
Contributor II

Need to select top 20 results in a bar chart only if greater than a certain value

Can you please tell how I would display top 20 results only above a certain value. In the below example we have sales from different stores for a particular company. Some stores did not make any sales, how can I remove $0 values from the chart but still keep top 20 intact (As for another company we may have stores in which all 20 spots are populated making higher the $0 in sales).

usman7vt_0-1697742646216.png

 

Labels (1)
1 Solution

Accepted Solutions
usman7vt
Contributor II
Contributor II
Author

Thanks for pointing me in the right directions, I had to convert zero values to first Null() and then drop them either using the 'Dimension' or 'Data Handling'

if(Sum([Sales]) > 0, Sum([Sales]), Null())

 

View solution in original post

2 Replies
JHuis
Creator III
Creator III

usman7vt
Contributor II
Contributor II
Author

Thanks for pointing me in the right directions, I had to convert zero values to first Null() and then drop them either using the 'Dimension' or 'Data Handling'

if(Sum([Sales]) > 0, Sum([Sales]), Null())