Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Script Num format help!

Hi all,

i have the attached script, the period field is coming through ina  text format, so i am trying to change it to a num format in the script (so it links to other data correctly) but when i do that it doesnt load any values for the field.

I have commented out lines 72-80 which does the NUM change so you can see the text format working.

Any chance someone could take a look to see what i am doing wrong please?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

In fact trim() alone should work, like :

trim(Period)  as Period

View solution in original post

3 Replies
tresesco
MVP
MVP

Try using trim() like:

Num(trim(Period))  as Period

tresesco
MVP
MVP

In fact trim() alone should work, like :

trim(Period)  as Period

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

nice one! thanks!