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: 
Theo_Westseit
Contributor III
Contributor III

Cut characters

Hello guys,

im looking for a way in the backend script to cut 4 characters from the right and return everything beyond.

Source Data Return
31551 3
884545 88
15003333 1500

 

Labels (3)
1 Solution

Accepted Solutions
brunobertels
Master
Master

Hi 

 

try this (replace value in simple quote with your dimension)

trim(left('884545',len('884545')-4))

trim supress blanck space if exist

len(yourdim)-4 count the number of digit minus 4 ( 4 characters to be supressed ) 

left() return the result 

View solution in original post

1 Reply
brunobertels
Master
Master

Hi 

 

try this (replace value in simple quote with your dimension)

trim(left('884545',len('884545')-4))

trim supress blanck space if exist

len(yourdim)-4 count the number of digit minus 4 ( 4 characters to be supressed ) 

left() return the result