Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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.