Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating Sub-Categorises From A Number of Field Values

Hello All,

I am trying to make sub-categorises from a number of field values.

For example, I might have the following column:

Item [Field Name]

Conditioner [Field Value]

Shampoo ["]

Hair Gel ["]

Bread ["]

Cheese ["]

I would like to make a sub-category from this data. Like, group all the hair care products into one category called Hair Care Products.

I have tried to do this using a set expression in the UI:

Sum({$<Item={'Conditioner', 'Shampoo', 'Hair Gel'}>}[TABLE NAME]).

When I drag this into the canvas it produces a numerical value, i.e. not what I want.

I have considered using the wildcard function, would this be advisable?

Thank you all in advance,

Alison

1 Solution

Accepted Solutions
marcus_sommer

I suggest to create such categories within the script maybe with a small inline-table like:

load * inline [

Item, Category

Shampoo, Hair Care Products

Hair Gel, Hair Care Products

...

];

and then to use this category within your objects.

- Marcus

View solution in original post

2 Replies
marcus_sommer

I suggest to create such categories within the script maybe with a small inline-table like:

load * inline [

Item, Category

Shampoo, Hair Care Products

Hair Gel, Hair Care Products

...

];

and then to use this category within your objects.

- Marcus

Not applicable
Author

Hi Marcus,

Great, that works! Thanks a lot!