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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlikuser09
Creator II
Creator II

I want to match and replace all that starts and ends with "driver" to "DRIVER"

Load

"JOB" AS [Position ]
, If(
WildMatch([JOB],'*DRIVER*', 'Driver')
,[JOB]) as [Position1]

I have Positions as "motorcycle driver", MVC driver, MTR driver, i want to replace everything and name them as "DRIVER" when data load.

 

 

 

2 Replies
JuanGerardo
Partner - Specialist
Partner - Specialist

Why not use Replace():

Load
   "JOB" AS [Position ],
   Replace([JOB], 'Driver', 'DRIVER') as [Position1]

 JG

MarcoWedel

If(WildMatch(JOB,'*DRIVER*'),'DRIVER',JOB) as Position1