Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ritvik4BI
Partner - Contributor III
Partner - Contributor III

Replacing "-" with 0 in the script

Hi All,

I have a Sales field. But several values in the field are written as "-", which basically means 0 value for Sales. Now I want to replace - with 0 in the backend. 

 

How to do this transformation in the script?

 

Regards.

1 Solution

Accepted Solutions
yassinemhadhbi
Creator II
Creator II

Godd morning,

you can use this expression

If(IsNull(Sales) or Sales='',0,Sales) as Sales

Best Regards
Yassine Mhadhbi

View solution in original post

1 Reply
yassinemhadhbi
Creator II
Creator II

Godd morning,

you can use this expression

If(IsNull(Sales) or Sales='',0,Sales) as Sales

Best Regards
Yassine Mhadhbi