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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
FinancialDataScientist
Contributor II
Contributor II

IF STATEMENT LABEL NOT "-"

Hi All,

 

I'm trying to label a pie chart and I'd like it say "None" rather "-" when there is no data. My current formula for the data field is:

if(quartile='1','1st Quartile',if(quartile='2','"nd Quartile',if(quartile='3','3nd Quartile',if(quartile='4','4th Quartile')))).

 

I've attached a picture in case that helps.

Thanks in advance guys!

Labels (3)
2 Replies
Anil_Babu_Samineni
MVP
MVP

Try this

if(quartile='1','1st Quartile',if(quartile='2','"nd Quartile',if(quartile='3','3nd Quartile',if(quartile='4','4th Quartile', 'none'))))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
FinancialDataScientist
Contributor II
Contributor II
Author

Hi Anil, I have tried this but the it seems to still count a a number of entries as "-" rather than none on the pie chart. Do you know how to fix this?