Not applicable
2017-03-27
09:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Tags:
- if and statement
996 Views
MVP
2017-03-27
10:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where exactly are you using this? In the script or front end?
857 Views
Not applicable
2017-03-27
10:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
857 Views
Not applicable
2017-03-27
10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like it might have been answered here: