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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.