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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
dharpernz
Frequent Visitor

Fliter/slicer on multiple columns if they appear in either column of a function

Hi I'm new to the board and PowerBI, I've spent all day trying to find a solution to this on the board but haven't managed it yet. I thought I'd got there but the Dax said no.

 

I am looking to visualise some supply chain data using 'Flow Map' but I can't work out how to create a filter/slicer that allows me to show a location as both a receiving and supplying site 

 

I want to create a Filter that shows both Supplier site Or Delivery site, so my Filter if I selected Site C would keep both in bold below so the flow into site C from Site B and the one Out to Site D, is this possible? Thanks

Data

Supplier SiteDelivery SiteProduct
Site ASite BX
Site BSite CY
Site ASite DZ
Site CSite DX
Site BSite AY
3 REPLIES 3
amitchandak
Super User
Super User

Create an independent Site dimension, do not join or create the inactive join

 

measure =

var _max = maxx(Site ,Site [Site ])

calculate(count(Table[Product]), filter(Table, Table[Supplier Site] =_max || Table[Delivery Site]=_max))+0

 

On this measure create font formatting when >0 then bold

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks, but I don't think I explained myuself very well.

 

I am looking for a filter/ slicer just for sites, that I can then apply to a larger dataset so don't think Product should be in the formula.

 

I've got a map that currently shows all movements from Supplier to Customer, but some sites are both customers and suppliers

so want people to be able to select a single site which shows flows into a Site and out of it. I've tried to show in a picture. in the example below on a filter for C it would show B to D and C to D, but not the ones out of D.

 

ThanksBI Q.png 

@amitchandak  sorry didn't tag did you have any other thoughts to my problem, after hopefully I explained it better?

 

Even if it's around a better way to structure the data to achieve the required outcome.

 

Thanks

David

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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