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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using match to select specific items and renaming

Hello,

How do I match to specific item on my dimension. also wanna collate some item together and name them as one. see...

=if(match([item text], 'Blocks', 'Buckets', 'Box',

             if(match([item text], 'Cutlass', 'Plates','Spoon'), 'Cutlery'),[Item text]),
'Cloth','Table','Chair'.........''


),[item text])

I wanna collate cutlass, plate, spoon to one name. what so I do?

14 Replies
hic
Former Employee
Former Employee

You can do a

=If(Match(Country, 'Great Britain','UNITED KINGDOM','UK'), 'United Kingdom',

If(Match(Country, 'Paris','Bretagne'), 'France'))

Just make sure that you have the same number of right-brackets in the end as you have If()-functions.

HIC

PS But a mapping table is MUCH better...

hic
Former Employee
Former Employee

I guess you are using this in a calculated dimension. If so, you might need to wrap in in Aggr() function (which is kind of like a for-next loop):

=Aggr(

     If(Match(Country, 'Great Britain','UNITED KINGDOM','UK'), 'United Kingdom',

          If(Match(Country, 'Paris','Bretagne'), 'France')),

     Country)

HIC

Not applicable
Author

Mapping table? Make me understand

sunny_talwar

Mapping load information can be found here as well:

http://www.learnqlickview.com/a-qlikview-tutorial-mapping-load-in-qlikview/

hic
Former Employee
Former Employee