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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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