Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator II
Creator II

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 II
Creator II
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 II
Creator II
Author

Thanks

I will come back after working.