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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
NewUser3
Contributor II
Contributor II

If statement scenario

hello everyone,

Scenario: if existing dimensional column is null then pick value from other given column.

other column comes from different table but connected to main table with primary key. 

mater dimension: =if(USE_BusnUnit,'-',USE_BusnUnit1)

however, with above expression, i am getting values from "USE_BusnUnit1" even if "USE_BusnUnit" is not null. I want to have values from "USE_BusnUnit" and then from "USE_BusnUnit1". 

please help with your valuable thoughts on how I can achieve it. Qlik Sense Enterprise on Windows 

Labels (5)
1 Solution

Accepted Solutions
NewUser3
Contributor II
Contributor II
Author

just used Coalesce() and it worked..

View solution in original post

5 Replies
NewUser3
Contributor II
Contributor II
Author

just used Coalesce() and it worked..
F_B
Specialist III
Specialist III

Hi @NewUser3 , welcome to the Community!

 

Threre'a an error in your expression, try with this:

=if(USE_BusnUnit = '-',USE_BusnUnit1)

sbaro_bd
Creator III
Creator III

Hi @NewUser3 ,

If you found the solution, marked the post as resolved to help others users which we'll face to the same issue like you in the future 😊.

Regards.

NewUser3
Contributor II
Contributor II
Author

Yes, just did. Thanks for telling, i did not know it

NewUser3
Contributor II
Contributor II
Author

nope..it isn't work. Coalesce()  can even take multiple parameters..