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: 
kaylab
Contributor
Contributor

How to perform an IF statement for blank values

kaylab_0-1687550565208.png

kaylab_1-1687550608675.png

kaylab_2-1687550679255.png

 I am trying to put "Not Accessed" In the last column for the boxes that contain '-' but nothing works. I've tried numerous IF statements and len but nothing seems to work. It is tied with users first/last name and their emails if that helps. All i need is for LastViewDate to show 'Not Accessed' when there is a blank. 

5 Replies
Zapparoli
Creator II
Creator II

Hi Kaylab.

Those "-" are null values, you can treat them by using IsNull Function.

In your case: If(IsNull(Latest),'Not Accessed', Latest).

You can use this either on your table or directly into the Script.

-Zapparoli

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics

kaylab
Contributor
Contributor
Author

Thank you for your response but for some reason it is not working in either.
MayilVahanan

Hi

Can you try with Alt function like

Alt(Latest, 'Not Accessed')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
kaylab
Contributor
Contributor
Author

That's not working either unfortunately.
MayilVahanan

Hi

Are you implementing the suggestion in front end or back end?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.