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: 
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')