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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

show null as blank

Hi All,


In the dataset(excel) you can see all products has no data for 'Third'(column in straight table) and Product-C also has no data for Second & Third. So i expect to show blanks in the straight table cells.

nulls image.png

My basic formula is see the pecentage when i do- budget/sales.


In the straight table i want to represent expression output as below--

If no data in sales and budget--show black

If data in sales and budget--show the respective percentage.

My below exprssion is not working to handle nulls.

if(sum(Budget_First) = 0,0,

if(len(sum(Budget_First))=0,' ',

   sum(Sales_First)/sum(Budget_First)*100))

Please help!

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Something like this?

IF(IsNull(SUM(Sales_First)/SUM(Budget_First)),Null(),SUM(Sales_First)/SUM(Budget_First))

use Second and Third respectively.

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Something like this?

IF(IsNull(SUM(Sales_First)/SUM(Budget_First)),Null(),SUM(Sales_First)/SUM(Budget_First))

use Second and Third respectively.

YoussefBelloum
Champion
Champion

Hi,

take a look at the background color of the expressions

PFA

jyothish8807
Master II
Master II

try this:

if(sum(Budget_Third) =0,'',

if(len(sum(Budget_Third)) =0,' ',

   sum(Sales_Third)/sum(Budget_Third)*100))

br,
KC

Best Regards,
KC
surajap123
Creator III
Creator III
Author

Thanks everyone