Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sujayrpatil
Partner - Contributor III
Partner - Contributor III

Grouping the categories in QlikView

I have one field called "OS Combination" and below is the list of field values I have.

ALL
ANDROID & IOS & MAC
ANDROID & MAC
ANDROID & WINDOWS & MAC
ANDROID ONLY
IOS & ANDROID
IOS & MAC
IOS & WINDOWS & ANDROID
IOS & WINDOWS & MAC
IOS ONLY
MAC ONLY
WINDOWS & ANDROID
WINDOWS & IOS
WINDOWS & MAC
WINDOWS ONLY

 

From the above field I need to create another filter which should contain ANDROID, WINDOWS, IOS , MAC.

So when I select ANDROID form this list box ANDROID related string should be selected in the above filter.

same for IOS , MAC and WINDOW. How can I create filter based on the above list of the field values.

Thanks,

Sujay

Labels (1)
2 Replies
martinpohl
Partner - Master
Partner - Master

Hi 

add to your script:

Temp:

load

"OS Combination",

subfield("OS Combination",' ') as OS

resident Yourtable;

OS:

noconcatnate load

"OS Combination",

OS

resident Temp where not match(OS,'&','ONLY');

drop table Temp;

then you will get for eample for the line 

ANDROID & MAC

Combined,            OS

ANDROID & MAC, ANDROID

ANDROID & MAC, MAC

Regards

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog post, it might be another way to go at things possibly.

https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.