Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creating Filter Groups? or something like that

hi all

i have a question.. i have a qv that loads a bunch of data points...

for example...   banana,grapes,apples,spinach,lettuce,cucumber,etc

how do i create a filter in qv to say fruit and ill tell it fruit includes this data set and veggies include this data set?

thanks

7 Replies
HirisH_V7
Master
Master

Hi ,

Check out attachment .

I think thats what you desired. !

HirisH
“Aspire to Inspire before we Expire!”
alkesh_sharma
Creator III
Creator III

Its Possible in QV desktop Environment, but won't work if QVW is scheduled and filtered in changed from access point.

maxgro
MVP
MVP

In script is simple,  add a new field

load

     field,      // banana, grapes, ...

     if(match(field, 'banana', 'apple', 'orange'), 'fruit',

     if(match(field, 'spinach', 'lettuce'), 'veggies ',

     'other'))  as  fieldtype

....

or you want allow the users to create the group without reload the app?

Anonymous
Not applicable
Author

hi  hirishv7

i dont see any attachments..

thanks

HirisH_V7
Master
Master

Hi jackie,

Here is the attachment .

Hope this helps

HirisH
“Aspire to Inspire before we Expire!”
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Jackie,

if you still can't see attachments, it's probably because you open the thread from your Inbox. There is a glitch in the forum software that doesn't show attachments when you open the thread from the inbox. Click on the title of the thread on top of the list and follow this link to the actual discussion board. There, you will see the attachments.

cheers,

Oleg Troyansky

Check out my new book QlikView Your Business: An expert guide to Business Discovery with QlikView an...

MarcoWedel

Hi,

you could also load the fruit/vegetable classification in a seperate table like:

QlikCommunity_Thread_188948_Pic1.JPG

QlikCommunity_Thread_188948_Pic2.JPG

tabYourQVD:

LOAD RowNo() as ID,

    Ceil(Rand()*100) as SomeRandomFact,

    *

Inline [

Name

banana

grapes

apples

spinach

lettuce

cucumber

]

While IterNo()<=Rand()*5;

tabFruitVeggies:

LOAD * Inline [

Name,Type

banana,fruit

grapes,fruit

apples,fruit

spinach,vegetable

lettuce,vegetable

cucumber,vegetable

];

or joined to your QVD-table like:

QlikCommunity_Thread_188948_Pic3.JPG

tabYourQVD:

LOAD RowNo() as ID,

     Ceil(Rand()*100) as SomeRandomFact,

     *

Inline [

Name

banana

grapes

apples

spinach

lettuce

cucumber

]

While IterNo()<=Rand()*5;

Left Join (tabYourQVD)

LOAD * Inline [

Name,Type

banana,fruit

grapes,fruit

apples,fruit

spinach,vegetable

lettuce,vegetable

cucumber,vegetable

];

(Nevertheless Applymap (like already suggested by hirishv7) might be the better choice: Don't join - use Applymap instead)

hope this helps

regards

Marco