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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

How to write the expression

Hi All,

How can implement 0 to the value in expression when the value is NULL.

See the screenshot.

Capture.PNG

In the chart ,

I have three category - Forecast Invoice Order.

But when there is no value for Forecast or Order , its not refelecting in the chart.

My Requirement, I need to show the Forecast Or Order Value which are not present by 0.

Sample Model attached.

3 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

You can try with "Show all values" on Dimension Amount Type, and disabling "Suppress zero values" in Presentation.

Note that your chart may also show Null values (can be suppressed by disabling Null values in the first Dimension) and may not show values that aren't even present in your data model. Creating dummy zero records may solve that one.

Best,

Peter

suvechha_b
Creator III
Creator III
Author

Hi Peter,

I have tried disabling "Suppress zero values" but . If the values  aren't even present in your data model.


Creating dummy zero records may solve that one. - How to create dummy zero records ?

Please can you show by exapmle.

I have attached the sample model.

Thanks,

Not applicable

Try flagging the fields in the script using something like this:

if(IsNull([Field1]), [Field1] = 0, [Field1]) as [Field1]