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: 
shakeeb_mohammed
Contributor III
Contributor III

If Statements in Script

Hi,

Can someone help me with my script please.

Example data -

SupplierPlannedQtyActualQty
Supplier 18080
Supplier 18585
Supplier 22626
Supplier 33030
Supplier 35050

What I want to do in my script is to add a column in my QVD file as below -

IF PlannedQty >= 80 as Tray

IF PlannedQty <= 26 as Pallet

IF PlannedQty is > 26 and < 80 as Dollies

I then want to put Tray, Pallet and Dollies as ShipmentDescription.

#Thanks in advance!

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

If(PlannedQty <= 26, 'Pallet',

     If(PlannedQty < 80, 'Dollies', 'Tray')) as ShipmentDescription

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

May be this

If(PlannedQty <= 26, 'Pallet',

     If(PlannedQty < 80, 'Dollies', 'Tray')) as ShipmentDescription