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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

nulls and zeros in the same column?

I have a Straight Table chart, where I am trying to get zero values display as '0' and rows where there is no value either blank or '-'.

My formula is as follows:

=IF([launched in last 6 months]='Yes',0,SUM({1<WeeksAgo={'1'}>}[Total Volume (M)]))

But even if there is no data for the row, it's still displaying as '0'.

How do I get the '-' to appear, or for the cell to be blank when there's no data?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Change the number format for the expression on the Number tab to #.##0;-#.##0;-


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Change the number format for the expression on the Number tab to #.##0;-#.##0;-


talk is cheap, supply exceeds demand
robert_mika
Master III
Master III

Maybe nested IF will help

Something like:

=IF([launched in last 6 months]='','-',IF([launched in last 6 months]='Yes',0,SUM({1<WeeksAgo={'1'}>}[Total Volume (M)])))

Not applicable
Author

Top man Gysbert!!