Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
hanschucrutes
Contributor II
Contributor II

Adding null number into a field

Hello everyone, I'm trying to create a table where there are some expected null values, but I wanted to add these null values to the CR - Credit Risk field. I tried with the formula '=if(IsNull([x]), 'b', [x])' and a few other options but didn't succeed. Can someone help me?

 

 

 

Labels (3)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

@hanschucrutes I guess the null may not be real null, Anyway I can think like this for the field with calculated dimension.

If([Obligor Coding]='CF-Contract Frustration', 'CF-Contract Frustration', 'CR-Credit Risk')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

@hanschucrutes I guess the null may not be real null, Anyway I can think like this for the field with calculated dimension.

If([Obligor Coding]='CF-Contract Frustration', 'CF-Contract Frustration', 'CR-Credit Risk')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
J_Venkateswara_Rao
Contributor
Contributor

if your field consist only two values, then you can use above suggested solution by Anil. otherwise,

=if(IsNull([Obligor Coding]) or len([Obligor Coding])<=0 or ,len([Obligor Coding])='-', 'CR - Credit Risk', [Obligor Coding])

 

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

How about:

Aggr(Coalesce([Obligor Coding], 'CR - Credit Risk'), [Obligor Coding])

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

qv_testing
Specialist II
Specialist II

Try this

=if(LEN(TRIM([Obligor Coding]))=0, 'CR - Credit Risk', [Obligor Coding])