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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Pico
Partner - Creator
Partner - Creator

Show only non negative values in bar charts

Hi all,

Probably it's an easy question, so thank you for your patience in advance.

I have two columns, one with a field (field_1) and the other one with a measure (sum(fileld_2)).

I would like to create a bar chart showing only the field_1 with the measure >0 (there are many field_1 with 0 as measure, and aesthetically I don't like it) .

How can I use the option: Chart - appearance - Y-axis - Number of axis values="Custom" & Maximum number="???formula???"

I think something about: count(distinct {sum(field_2)>0} field_1) but obviously doesn't work that way

Thank you 🙂

Labels (2)
1 Reply
brunobertels
Master
Master

hi 

in the dimension 

if(sum(field2)>0,field1)