
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if(value=x,NULL,value)
If a value is = to a certain value, then I need to set it to null, otherwise, I need to set it to the value.
What I'm not sure of, is what to use to set a value to null. Is '' truly a null value, or is there a way as there is in sql to say NULL, as '' is a blank string, not a null value.
Hopefully, this makes sense and I'm just having a moment.
Thanks in advance for your assistance!
Greg
- Tags:
- new_to_qlikview
- null
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could simply use null():
if(value = 'x', null(), value)
- Marcus


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
besides using the null() function, you could also negate your condition and omit the else part (so if() returns null in the else case):
If(value <> 'x', value)
hope this helps
regards
Marco


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please close this thread if you got your answer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sasidhar,
The only option in Actionss that I have is "Mark as Helpful." I'm definitely missing something simple. How do I "close the thread?"
Thanks!
Greg


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you should see a correct answer button.
regards
Marco


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was looking at the thread in My Inbox, and the Correct Answer option wasn't displaying there. Opening it in a new tab, made it display.
Thanks!
