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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

String Format rows

Hi Guys, 
I have a small function to achieve i.e, I want add leading Zero's to the input which have Long as Datatype:
Output:
0000007865
0002333342
0022373461
0000236327

Input:
7865
2333342
22373461
236327
Labels (2)
12 Replies
Anonymous
Not applicable
Author

Thanks bhanu chandar 0683p000009MACn.png
Anonymous
Not applicable
Author

this one is simple which was suggested by bhanuchandar: Var.var1!=""?("0000000000"+Var.var1 ).substring(Var.var1.length()):""   
Output:
0683p000009MCvX.png
Anonymous
Not applicable
Author

Good solution bhanu.