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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Chris_23
Helper II
Helper II

Filter slicer based on table selection

Hi,

 

i need to filter back to a slicer based on the selection of a table. There are two identically datasets:

Chris_23_0-1671180587546.png

 

On the report, i want to get all classification which are in filter contex of Table[Vendor]

Chris_23_1-1671181103839.png

 

I tried to set following measure in the 'filtercriteria for slicer':

 

Filterback = CALCULATE(COUNTROWS(Distinct('Table (2)'[classification])),USERELATIONSHIP('Table (2)'[Vendor],'Table'[Vendor]), Filter('Table (2)', 'Table (2)'[classification]= "P1"|| 'Table (2)'[classification]= "P2" ||'Table (2)'[classification] = "P3"))
 
Link to pbix:
 
Any ideas what to improve?
 
Thanks
Chris
 
 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

It's not clear to me what you are trying to achieve. The tables are (inactively) joined via Vendor, not via classification.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.