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: 
wl1
Contributor II
Contributor II

Qlik Sense's handling of leading zeros in strings

How to change the string '0000039041005545' to '39041055545' in Qlik Sense

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Oh, yes, you can use Evaluate(). 

However, not in a UI expression. You need to use it in the script when you load the field. Try it there, and you'll see.

View solution in original post

5 Replies
hic
Former Employee
Former Employee

Try loading the field using the Evaluate() function in the script, e.g.

Num(Evaluate(Field)) as Field,

wl1
Contributor II
Contributor II
Author

Thank you for your recovery~  but this function(Evaluate) is not applicable屏幕截图 2024-06-19 085517.png

anat
Master
Master

Num(Num#(yourfield,'#,##0'),'#0') as field name 

Or

Field+0 as newfield

hic
Former Employee
Former Employee

Oh, yes, you can use Evaluate(). 

However, not in a UI expression. You need to use it in the script when you load the field. Try it there, and you'll see.

wl1
Contributor II
Contributor II
Author

Thank you very much for your answer. It can fully achieve the display I need