Reply
dharpernz
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Syndicated - Outbound

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 

Syndicated - Outbound

@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

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)