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

Grouping Dimensions

Hi

I have 4 dimensions in my main table that I need to group.

1. Apple

2. mango

3. Pineapple

4. Banana.

I need to group all of these as "fruits". How do i do it in the scrpit?

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

In the script:

if(wildmatch(YourFieldName, '*apple', 'mango', 'banana'), 'Fruit', YourFieldName) as YourNewFieldName

(Here *apple covers both apple and pineapple)

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Have you looked into the CrossTable() function?

Not applicable
Author

I have but I cant seem to work my way around on this. Are you ok to provide some guidance?

Anonymous
Not applicable
Author

In the script:

if(wildmatch(YourFieldName, '*apple', 'mango', 'banana'), 'Fruit', YourFieldName) as YourNewFieldName

(Here *apple covers both apple and pineapple)