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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

clean dimension values or categorise them

Hi All,


I want to group field(dimension) values into a different dimension, ie My current field values are are not clean, so i am trying for the best way to categorize it or atleast trim the values like below example.

Field Value Example-

from-

CASH DCN2 JUL02....

CASH DCN3 JUL05...

to-

CASH

Please help me how to achieve this.

Thanks!!

13 Replies
surajap123
Creator III
Creator III
Author

Hi Varsha,

Yes, I am expecting similar result. Could you show the full expression.

arulsettu
Master III
Master III

try this

=if(WildMatch(PurgeChar(fieldname,'0123456789*'),'*CASH*'),'CASH',PurgeChar(fieldname,'0123456789*'))

varshavig12
Specialist
Specialist

if(WildMatch(TransactionType,'*CASH*'),'CASH',trim(replace(TransactionType,'*','')))

surajap123
Creator III
Creator III
Author

Thanks

I will come back after working.