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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
YanivZi
Contributor III
Contributor III

How to mask?

I have a field which contain 17 digits i will like to split it.

turn this:

00120190139007009

into this:

001201-9-0139-007-00-9

 

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

as below

 

=left(fieldname,6)&'-'&mid(fieldname,7,1)&'-'&mid(fieldname,8,4)&'-'&mid(fieldname,12,3)&'-'&mid(fieldname,15,2)&'-'&right(fieldname,1)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

as below

 

=left(fieldname,6)&'-'&mid(fieldname,7,1)&'-'&mid(fieldname,8,4)&'-'&mid(fieldname,12,3)&'-'&mid(fieldname,15,2)&'-'&right(fieldname,1)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.