Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
charlotte_garnier
Contributor
Contributor

Don't display data when = 0

Hi Community !

See in the picture bellow, I have a chart with several different pieces of data and I set one of them to be displayed as a robot icon. The thing is at one point, the data represented by my robot reaches 0. Then, what I'd like to have on my graph would be : robots when I have data to materialize and nothing when the value is 0. 

What I've tried to do with conditions erased the entire robots line and that's not wanted.

 

Thanks in advance !

Annotation 2022-02-17 172631.jpg

Labels (1)
1 Solution

Accepted Solutions
Lisa_Sun
Support
Support

To do this, you can set the zero value to NULL.  For instance,  

if(Sum(sales)=0, NULL(),Sum(sales))

Then for the dimension, select the option "Include null Value".

Capture.png

For the measure, select "Include Zero Value" 

Capture1.PNG

Please find the example qvf. 

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

1 Reply
Lisa_Sun
Support
Support

To do this, you can set the zero value to NULL.  For instance,  

if(Sum(sales)=0, NULL(),Sum(sales))

Then for the dimension, select the option "Include null Value".

Capture.png

For the measure, select "Include Zero Value" 

Capture1.PNG

Please find the example qvf. 

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!