Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
terrusie
Contributor II
Contributor II

Complex filtering of data sets

I'm sure there's an easy answer for this, but I'm having a hard time putting the right conditions together.

With the data table below, what I'm trying to do is make a list box that lists the people who have the most marbles in their neighborhood.

NeighborhoodNumber of MarblesCategory 3
A6Cindy
A1John
A3Mary
B10David
B11Samantha
C4Jerry
C15Martha
C7Larry
C9Henry

In other words:

NeighborhoodHeader 2
ACindy
BSamantha
CMartha
1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Just use this in your straight table like

Dim: Neighborhood

Expr: = FirstSortedValue([Category 3], -[Number of Marbles])

View solution in original post

6 Replies
vishsaggi
Champion III
Champion III

Just use this in your straight table like

Dim: Neighborhood

Expr: = FirstSortedValue([Category 3], -[Number of Marbles])

MarcoWedel

Hi,

one solution using a listbox could be:

QlikCommunity_Thread_300243_Pic1.JPG

QlikCommunity_Thread_300243_Pic2.JPG

If you want to select names instead of neighborhoods when clicking one value, you could instead use an expression like:

=Aggr(Only({$<[Category 3]={"=Index(Concat(total Aggr(FirstSortedValue([Category 3],-[Number of Marbles]),Neighborhood),'/'),[Category 3])"}>} [Category 3]),[Category 3])

hope this helps

regards

Marco

vishsaggi
Champion III
Champion III

Referring to Marco's expr in Listbox you can also try like below

Add neighborhood as your field

Then go to expression tab

vishsaggi
Champion III
Champion III

Oops Ignore this. This does not work when you select in the Listbox. Follow Marco's expression.

terrusie
Contributor II
Contributor II
Author

Marco,

While Vishwarath's answer was sufficient, I'm curious as to the power that your solution adds. When/If I get around to testing it out, I'll post a response here.

terrusie
Contributor II
Contributor II
Author

Yes,

Selecting in the listbox only isolates the Neighborhood.  It does not isolate the scope of the most marbles.