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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
adrmar
New Member

Conditional Filtering in Scatter Plot

Hello everyone,

 

I am currently struggling with my scatter plot in Power BI. 

Basically I want to map all the topics my department is currently working on. So in the middle of the chart I have my head of department and surrounding it I have all the relevant topics. I did this manually by assigning coordinates for each topic. This worked very well and I have a nice bubble map. What I now want is to filter the topics according to responsibilities. The problem is that for a certain topic there is usually more than one person responsible. 
What I want is a filter where I can click on James and get all the topics where James is responsible/included. But what I get for now in my filter is every combination of responsibilities e.g. "James"; "James, Carl" (as listed in my Excel under Responsibilities (Names)). Alternatively I created the column Responsibility (Numbers) where my idea was to then create an IF Clause so that if a topic contains the value 1 it is assigned to James. And that this way I can create a filter where only the individual names appear. 

adrmar_1-1696931228207.png

I would be very thankful for any help!

 

(disclaimer: I have about 50 topics but only included a few which is why according to the coordinates the head of unit would not be in the middle)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @adrmar ,

 

You could create a measure for this.

And also you need to make sure there's no relationship between tables.

Measure  = 
var _select=SELECTEDVALUE('Table (2)'[Name])
return
IF(
    CONTAINSSTRING(MAX('Table'[Responsibilities(Names)]),_select)=TRUE(),1,0)

vstephenmsft_0-1697088112642.png

Then put the measure into the visual-level filter, set up show items when the value is 1. In the example, I used a table visual as an example.

vstephenmsft_1-1697088192047.png

Result:

vstephenmsft_2-1697088700058.pngvstephenmsft_3-1697088706364.png

Best Regards,

Stephen Tao

 

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @adrmar ,

 

You could create a measure for this.

And also you need to make sure there's no relationship between tables.

Measure  = 
var _select=SELECTEDVALUE('Table (2)'[Name])
return
IF(
    CONTAINSSTRING(MAX('Table'[Responsibilities(Names)]),_select)=TRUE(),1,0)

vstephenmsft_0-1697088112642.png

Then put the measure into the visual-level filter, set up show items when the value is 1. In the example, I used a table visual as an example.

vstephenmsft_1-1697088192047.png

Result:

vstephenmsft_2-1697088700058.pngvstephenmsft_3-1697088706364.png

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.