Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

Selections Issue

Hi,

Here is a sample data set -

ColorFruit
YellowBanana
YellowMango
RedGrapes
RedBerry
GreenGrapes
GreenBanana

I have created filter/list box expression -

if(
Match(Color, ’Yellow’)
or
Match(Color, ’Green’) 
,
‘Favorite Fruit’

)

Once I select the filter 'Favorite Fruit' (LED Green Check Box enabled), data narrows down to -

 

ColorFruit
YellowBanana
YellowMango
GreenGrapes
GreenBanana

Now if I select 'Banana' , the filter 'Favorite Fruit' stays unhampered, as Banana falls in both Green and Yellow.

But if I select 'Grapes' or 'Mango', the filter 'Favorite Fruit' gets cleared - Means the LED Check mark disappears, but in th current selection box still the Color shows as Yellow, Green.

Need -

For the scenario like I did for 'Grapes' or 'Mango', my LED Check Mark SHOULD NOT vanish and Current Selection Box to show the respective Color (even though its a single color).

Please suggest the expression to modify.

Regards!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

=Aggr(

if(

Match(Color, 'Yellow')

or

Match(Color, 'Green') 

,

'Favorite Fruit')

,Color)

2017-04-20 17_42_52-QlikView x64 - [C__Users_s.wuehl_Downloads_RegressionLine.qvw_].png

View solution in original post

2 Replies
swuehl
MVP
MVP

Try

=Aggr(

if(

Match(Color, 'Yellow')

or

Match(Color, 'Green') 

,

'Favorite Fruit')

,Color)

2017-04-20 17_42_52-QlikView x64 - [C__Users_s.wuehl_Downloads_RegressionLine.qvw_].png

dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi swuehl‌,

Thank you. Cool. 

I tried putting the Aggr function - but for all other fields except 'Color'.

Even though it keeps the Filter unhampered now, but the Current Selection Box still has two values. But that's fine for me.

If we can work on that, would be great otherwise not a priority though!