Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need Help in Remove Function

Hello!  I need help to compose a formula to ommit a a ceratin characters  (-T,-DM,DM,-P*)...

Material               Desire Results

15-9350-01-T           15-9350-01

201111111DM         201111111

201212121-DM          201212121

SA20111-PST            SA20111

15-93520-01-PSW       15-93520-01

Pls. help...I've been stuck for hours solving this.

Tks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Instead of Material use below in your script or UI side...

IF(Index(Material,'-P'),Left(Material,Index(Material,'-P')-1),Replace(Replace(Replace(Material,'-T',''),'-DM',''),'DM','')) as Material

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Instead of Material use below in your script or UI side...

IF(Index(Material,'-P'),Left(Material,Index(Material,'-P')-1),Replace(Replace(Replace(Material,'-T',''),'-DM',''),'DM','')) as Material

Anonymous
Not applicable
Author

Thank You so much , Manish...You just solve my problem.

Rgds.