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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jtbonner1986
Frequent Visitor

How to use a single filter on a single table with multiple relationships

Apologies for the poor description, but I don't know how to word it.

Essentially I have a supply chain mapped in an excel file (uploaded to a single tablein power BI), it looks a little something like this

 

Tier 1 Tier 2 Tier 3
Supplier ASupplier 1Supplier x
Supplier ASupplier 2Supplier y
Supplier ASupplier 3Supplier z
Supplier BSupplier 4Supplier z
Supplier BSupplier 5Supplier 2
Supplier BSupplier 1Supplier v

 

Now, I want to create a single filter on 'Supplier Name' which when selected will only show me that suppliers 'supply chain'

EG if supplier 'x' is selected then i would expect the following return

 

Tier 1 Tier 2 Tier 3
Supplier ASupplier 1Supplier x
Supplier A  
Supplier A  

 

if supplier '1' is selected i would expect the following return

 

Tier 1 Tier 2 Tier 3
Supplier ASupplier 1Supplier x
Supplier BSupplier 1Supplier v

 

I havbe tried splitting out the tier tables, and creating a master but the joins wont allow this to function as expected. 

 

The issue is a supplier in tier 2 or 3 can appear in each section - suppliers in tier 1 will only appear in tier 1 

 

Any help?

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @Jtbonner1986 

You can refer to the following solution

1.Create a slicer table

Slicer = var a=SUMMARIZE('Table',[Tier1])
var b=SUMMARIZE('Table',[Tier2])
var c=SUMMARIZE('Table',[Tier3])
return SUMMARIZE(UNION(a,b,c),[Tier1])

vxinruzhumsft_0-1696924474805.png

 

2.Create a calculated column in data table

Combine = [Tier1]&","&[Tier2]&","&[Tier3]

3.Then create a measure, and put the measure to the visual filter

Measure = IF(ISFILTERED(Slicer[Tier1]),IF(CONTAINSSTRING(SELECTEDVALUE('Table'[Combine]),SELECTEDVALUE(Slicer[Tier1])),1,0),1)

vxinruzhumsft_1-1696924590220.png

 

Output

vxinruzhumsft_2-1696924601218.png

 

vxinruzhumsft_3-1696924621695.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

onurbmiguel_
Super User
Super User

Hi   @Jtbonner1986 

 

Please check my solution in the file: 

Filter with Path

 

i cretated a table with all Suppliers: 

 onurbmiguel__0-1696582507625.png

 

i created also a column with the path of each supplier: 

 onurbmiguel__1-1696582558493.png

 

and then i created a measure to filter :

 onurbmiguel__2-1696582596593.png

 

in the visual i used the measure to filter : 

 onurbmiguel__3-1696582796509.png

 

Any question just ask. 

 

 

Best regards

Bruno Costa | Power Participant

 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution or giving it a kudoe

You can also check out BI4ALL's website and our data solutions!

 

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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