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

View all the Fabric Data Days sessions on demand. View schedule

Reply
jja
Helper III
Helper III

Filter visual based on slicer selection

Hi

I have this schema:

jja_0-1650555882666.png

I have a slicer Type that is a column from Components table

When selecting one of the values in this slicer i want to calculate and filter(in Donut chart visual) how many projects have  customers based on this slicer seletected value

IF i make relationship bidirectional between components and projects i can achieve this but i know bidirectional relationships are evil so i want to use visual level filters but i can't figure it out how to do that.

Can you please help

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @jja 

 

You can create a measure and use it in visual.

Like this:

Measure = COUNTX(filter(ALL(projects),[projectID] in DISTINCT(components[projectID])),[CustomerID])
//COUNTX(filter(ALL(projects),[projectID] in DISTINCT(components[projectID])),[projectID])

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

View solution in original post

1 REPLY 1
v-janeyg-msft
Community Support
Community Support

Hi, @jja 

 

You can create a measure and use it in visual.

Like this:

Measure = COUNTX(filter(ALL(projects),[projectID] in DISTINCT(components[projectID])),[CustomerID])
//COUNTX(filter(ALL(projects),[projectID] in DISTINCT(components[projectID])),[projectID])

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors