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: 
Anonymous
Not applicable

How do i replace text in a field as Null

Hi,

How do i replace text in a field as Null

Name

John

N/A

N/A

Paul

I want to change the 'N/A's in Name field to NULLS.

Thanks

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

Try: if(Name = 'N/A', null(), Name) as Name

- Marcus

View solution in original post

3 Replies
marcus_sommer
MVP
MVP

Try: if(Name = 'N/A', null(), Name) as Name

- Marcus

avinashelite
MVP
MVP

//in front end

If(Name='N/A','',Name)

//in backend

If(Name='N/A','',Name) as Name

Anonymous
Not applicable
Author

Thanks

ARHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!

I was missing the '()' on null()

Thanks.