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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
DinaH
Contributor
Contributor

Change part of script

Hi

I have data that I load from an excel file.  One of the columns in the data is a unit of measure column.  The unit of measure for example can be EA or P10.  In this cases I would like to have in my script a "formula" to convert the EA to a "1" and the P10 to the "10" only

How can I do this?

Thank you

1 Reply
stevejoyce
Specialist II
Specialist II

Your load script formula can be:  Pick(Match([unit of measure column], 'EA', 'P10'), 1, 10)

You can use that to multiply by your measurement column.