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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Amit_B
Creator III
Creator III

Convert Zero to Nulls in UI measure

Hi all,

Is it possible to convert zeros into Nulls as a calculation result of a measure?

For example,
The second measure (in purple) get 0 in 2024-01 to 2024-03, so the first value should be in April.
I made it with If function but it's less convenient in complex measures.
It didn't work if I just uncheck 'Include Zero Values'.
I'm looking for a function like Alt that can convert the Nulls to Zero.

Thanks!

Amit_B_1-1716735734091.png

Labels (5)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

2 Replies
rwunderlich
MVP
MVP

How about:

=EmptyIsNull(Num(your expression), '0;0;'))

rwunderlich_0-1716768598016.png

 

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

Amit_B
Creator III
Creator III
Author

Looking good! Thanks!