Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add calculate field

I'm trying to add a calculate field to a new sheet I'm importing. its a simple If statement like this:

if(len([Inventory Organization])=1,'00'&[Inventory Organization])

Basically if the organization has only 1 character in it, I want to add two leading zeros. I've used this many times in excel with no problem. Qlik keeps giving me an error on the = sign saying 'Unrecognized sybol:='.

Any help would be much appreciated.

3 Replies
sunny_talwar

Where exactly are you using this? In the script or front end?

Not applicable
Author

Front end. I was able to achieve it in the load script... but trying to keep to just the GUI.

Here's screenshot if that's helpful.

Capture.JPG

Not applicable
Author

Looks like it might have been answered here:

Re: Qlik Sense - Data Load - Add Calculated Field