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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.