cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kekzoj
Frequent Visitor

How to filter the options for another filter (multiple times) [testfile/screenshots included]

Hey there,

 

I want to use a filter to filter the options of another filter. I will be very clear with multiple pictures to show what I mean exactly.

Let's say I have the following dataset (but in reality I have about 100 columns):

 

ID, AttributeColor, AttributeSize, AttributeType, AttributeRating

1, B, X, AA, 2

2, R, XL, AA, 4

3, G, M, AB, 3

4, B, X, BB, 4

5, B, X, AB, 5

6, B, XL, BB, 3

 

 

 

 

And what I want is, let's say, filter my dataset on certain values of AttributeSize and AttributeType.

I can create a slicer for AttributeSize and AttributeType, not a problem at all.

However, I want to be able to change the filter in the front-end to be changed to AttributeColor and AttributeRating.

So basically: Filter 1 to select the field I want to filter on, Filter 2 shows the values of the selected field to be filtered on.

 

What I tried so far:

- Link the same table, but then an unpivoted version of the table.

- Edit relationships. (See pictures below to become very specific)

 

 2018-10-11 11_21_34-emmpc0122 - Verbinding met extern bureaublad.pngEdit relationships to make sure the filters are not applicable to the other filters2018-10-11 11_26_30-emmpc0122 - Verbinding met extern bureaublad.pngSo far so good, but as soon as I use the second filter the info doesn't show.2018-10-11 11_27_40-emmpc0122 - Verbinding met extern bureaublad.pngNothing shown, however we know there is a row with the values selected....2018-10-11 11_28_17-emmpc0122 - Verbinding met extern bureaublad.pngDataset2018-10-11 11_28_52-emmpc0122 - Verbinding met extern bureaublad.pngDatamodel

 

In case you need a testfile:

https://1drv.ms/u/s!ApYezvnm5pOshWQW4TGubgDqON7Y

 

 

The only thing I can think of right now is create 100 tables for 100 columns to make the right selections. However sometimes the table provided has 91 columns, sometimes it has 97, sometimes 41, and sometimes even the names of the fields change. It depends on the organisatie whether they call something 'AttributeSize' or 'Attribute_Size' or 'SizeAttribute', etc.

 

I am really stuck, I hope someone can think with me here.

Also, if you need anything more, ask me right away!

 

Kind regards,

Igor

 

1 ACCEPTED SOLUTION

Accepted Solutions
kekzoj
Frequent Visitor

Re: How to filter the options for another filter (multiple times) [testfile/screenshots included]

Hey there,

 

Since I want to select among 90-110 filters in the front-end, but only have a max of 4 filters, I decided to copy the Unpivot table 4 times.

 

Per Unpivoted table I create 1 slicer based on Attribute and 1 slicer based on Value next to it. Repeat this process 4 times, et voila problem solved.

 

Kind regards,

Igor

View solution in original post

3 REPLIES 3
Microsoft v-cherch-msft
Microsoft

Re: How to filter the options for another filter (multiple times) [testfile/screenshots included]

Hi @kekzoj

 

It seems you may create the slicer table with DISTINCT Function as below. Then set the realtionships to filter the table.1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kekzoj
Frequent Visitor

Re: How to filter the options for another filter (multiple times) [testfile/screenshots included]

Hey Cherie, thanks for the suggestion.

 

However I deal with 100 columns (depends actually, sometimes 90, sometimes 110). So I have to create 110 slicers manually to do this. And still, you already have to choose the slicers you want beforehand instead of users being able to choose them in the front-end.

 

I want to have 2 filters next to eachother, the first to select the field to filter on, the second to select a value within the selected field. For this you need to have the table unpivoted, that's step 1, but for now I'm lost

kekzoj
Frequent Visitor

Re: How to filter the options for another filter (multiple times) [testfile/screenshots included]

Hey there,

 

Since I want to select among 90-110 filters in the front-end, but only have a max of 4 filters, I decided to copy the Unpivot table 4 times.

 

Per Unpivoted table I create 1 slicer based on Attribute and 1 slicer based on Value next to it. Repeat this process 4 times, et voila problem solved.

 

Kind regards,

Igor

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors