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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Prakhar1
Creator III
Creator III

String Sequence

Hi ,

I need to generate a id column having string data type like :

TM_00001

TM_00002

...

and so on.

So, what could I do to achieve this?

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@Prakhar ,use the below syntax in tmap or tjavarow to generate sequence.

 

"TM_"+StringHandling.LPAD(Numeric.sequence("S1", 1, 1).to String(),5,"0")

 

 

View solution in original post

1 Reply
manodwhb
Champion II
Champion II

@Prakhar ,use the below syntax in tmap or tjavarow to generate sequence.

 

"TM_"+StringHandling.LPAD(Numeric.sequence("S1", 1, 1).to String(),5,"0")