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: 
KC3
Creator
Creator

Null Change to Shipping

Hi,

I wanted to change my null variant_sku value into Shipping_Chgs. But i am doing somting wrong the data is not coming right.

Please look into it and help me to solve it.

PFB SS for the same, i wanted to change in Script.

KC3_0-1669116199702.png

Result as there are more sku but i ama getting only Variant Sku, Shipping

KC3_1-1669116236399.png

 

 

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Try:

If(Len(Trim(variant_sku))=0,'Shipping_Chgs',variant_sku),

View solution in original post

2 Replies
Or
MVP
MVP

Perhaps use Coalesce(variant_sku,'Shipping_Chgs')?

You could also use the if(Isnull()) formula but you would probably want to remove the quote from 'variant_sku' if you're trying to get that field's value, rather than the string 'variant_sku'.

BrunPierre
Partner - Master
Partner - Master

Try:

If(Len(Trim(variant_sku))=0,'Shipping_Chgs',variant_sku),