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: 
Anonymous
Not applicable

Removing last 7 characters

Hi

I am trying to remove last 7 characters from a string but my expression does not work , can someone take look at it

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

Left(SummaryTargets.key, Len(Trim(SummaryTargets.key)) - 7)


Capture.PNG

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Usually something like this should work:

Left(FieldName, Len(FieldName) - 7))

sunny_talwar
MVP
MVP

Try this:

Left(SummaryTargets.key, Len(Trim(SummaryTargets.key)) - 7)


Capture.PNG