Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

wildcard in dimension

i have a column and in that column i have some data like this 

CO2345

DF34234

now i want if there is CO in starting then i want to rename as CO  and if data has DF at starting then i want only DF in data like this 

CO

DF

 

what should  i do 

1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

if(left(field_name,2)='CO','CO',IF(LEFT(field_name,2)='DF','DF',field_name))
Learning never stops.

View solution in original post

3 Replies
pradosh_thakur
Master II
Master II

if(left(field_name,2)='CO','CO',IF(LEFT(field_name,2)='DF','DF',field_name))
Learning never stops.
agni_gold
Specialist III
Specialist III

if(wildmatch(Column_Name , 'CO*') , 'CO' ,
if(wildmatch(Column_Name , 'DF*') , 'DF' ,
Column_Name
))
tresesco
MVP
MVP

Or this:

=Pick(WildMatch(Dim,'CO*', 'DF*'), 'CO','DF')