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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahran
Contributor II
Contributor II

Subdivide String

Hello,

I have an ID e.g. CG45984G1156GD42R46Z135466
and now I want to subdivide it as follows:
CG45984G-1156-GD42-R46Z135466
So first after 8 characters should be a '-', then after 4 characters a '-' and then again after 4 characters a '-' and then the rest.

Can anyone help me? Thank you

1 Solution

Accepted Solutions
Or
MVP
MVP

Left(String,8) & '-' & Mid(String,9,4) & '-' etc.

 

View solution in original post

2 Replies
Or
MVP
MVP

Left(String,8) & '-' & Mid(String,9,4) & '-' etc.

 

Mahran
Contributor II
Contributor II
Author

Thank you!