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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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?

Labels (1)
14 Replies
hic
Former Employee
Former Employee

Use a mapping table. See Data Cleansing

HIC

sunny_talwar
MVP
MVP

Not sure what you are trying to do? May be this in your load statement:

If(Match([item text], 'Cutlass', 'Plates', 'Spoon'), 'Cutlery', [item text]) as New_Item_Text

maxgro
MVP
MVP

1.png

z:

load

  [item text],

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

  if(match([item text], 'Cutlass', 'Plates','Spoon'), 'Cutlery',

  [item text]

  )) as [new item text]

inline [

item text

Blocks

Buckets

Box

Cutlass

Plates

Spoon

Chair

];

jonathandienst
Partner - Champion III
Partner - Champion III

You can do this:

=If(Match([item text], 'Blocks', 'Buckets'), 'Box',

If(Match([item text], 'Cutlass', 'Plates','Spoon'), 'Cutlery',

If(Match([item text], 'Cloth','Table','Chair'), 'Furniture')))

But I would create an mapping table that loads the category associated with the items, and then use the category as the dimension.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

You can use an excel file or an inline table to load the category to the corresponding item.

Load it as a mapping table then use the applymap function in your destination table.

Not applicable
Author

Its a nested IF statement. I already matched to pick specific fields and I need to call these items A name. so that is where the next IF statement comes in

Not applicable
Author

Am coding in Dimension editor not load please. I have a field holding all the items I wanna match

Not applicable
Author

No that's not what I want

Not applicable
Author

How do I do nested IF here

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