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: 
amit_saini
Master III
Master III

Expression help !!!

Hi Folks,

Below I'm calculation expression as Act Scrap% of Revenue New=sum([Act. Scrap $])/sum([Act Revenue]) , My requirement  Is it possible to show empty space if no value can be calculated? Instead of 0.0% it should show no values (Blank).

Thanks,

AS

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

=If( sum([Act. Scrap $])/sum([Act Revenue])<>0,

     sum([Act. Scrap $])/sum([Act Revenue]),

     null()

)

And then unchech 'Supress Missing' in the presentation tab.

View solution in original post

2 Replies
Not applicable

Hi Amit,

You can have if condition in your expression something like below

=If(sum([Act. Scrap $])/sum([Act Revenue])=0.0,'',sum([Act. Scrap $])/sum([Act Revenue]))


There must be other approach to tackle this, but this is what I got it quick.


Thanks

Arindam

tresesco
MVP
MVP

Try like:

=If( sum([Act. Scrap $])/sum([Act Revenue])<>0,

     sum([Act. Scrap $])/sum([Act Revenue]),

     null()

)

And then unchech 'Supress Missing' in the presentation tab.