Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper I
Helper I

Filter a visual based on a corresponding value of a selection made in a slicer

I apologize if this is confusing, as I've struggled with finding a good way to explain what I want to do. 


I have a dashboard that includes two sets of guage charts. 

The guage charts show the average percentage of court cases disposed within a set guideline. The first guage shows the average for any/all selected case types across all locations. But the second gauge is where I'm struggling.


Now, each court is assigned a size comparision group (small, medium, large, etc).


What I could like for the second gauge is to also display the average percentage of cases disposed within the guidlines of any/all selected case types of the corresponding size group of the court selected. 


So, since 3rd Circuit Court is in the "Big County" comparison group, the secong gauge should show the average percentage of cases of the selected case type across all courts in the "Big" comparison group. But if I were to change the slicer selection to the 38th Circuit court (in the "Large County" comparison group), the gauge would show the average percenage for all courts in the "Large" comparison group. 


Any suggestions?

Thank you so much!


Super User
Super User

I don't understand what you are trying to achieve. Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Here is a copy of the mock data file


Each location corresponds with a size comparison group, and I'd like the second guage to change to the applicable size comparison group based on what location is selected. 

What's the role of the SizeGroupTable?  Is it used for anything?

I had experimented with a few things that required the separate SizeGroupTable that didn't work, so currently, it has no role. 

  I don't claim to understand much about the business topic but both the number of measures and the verbosity of each measure is concerning.  I would take your base table and normalize it to the extent required for answering this question.  That would get rid of all the measures (bar one or two) and would simplify the remaining measures.


In order to calculate the average for the size group for a selected location you would create a measure that removes the location filter but keeps the size group filter, most likely via REMOVEFILTERS()


Side note:  Things like 

       CASELOAD_DATA[ACTION_NAME] = "Disposed within 14 days" || CASELOAD_DATA[ACTION_NAME] = "Disposed within 14 days and reduced to misdemeanor" ||CASELOAD_DATA[ACTION_NAME] = "Disposed from 15 to 28 days" || CASELOAD_DATA[ACTION_NAME] = "Disposed from 15 to 28 days and reduced to misdemeanor" ||CASELOAD_DATA[ACTION_NAME] = "Disposed after 28 days" || CASELOAD_DATA[ACTION_NAME] = "Disposed after 28 days and reduced to misdemeanor" ||CASELOAD_DATA[ACTION_NAME] = "Pending from 15 to 28 days" || CASELOAD_DATA[ACTION_NAME] = "Pending after 28 days"

can be slightly simplified like

       CASELOAD_DATA[ACTION_NAME] IN {"Disposed within 14 days","Disposed within 14 days and reduced to misdemeanor","Disposed from 15 to 28 days","Disposed from 15 to 28 days and reduced to misdemeanor","Disposed after 28 days","Disposed after 28 days and reduced to misdemeanor" ,"Pending from 15 to 28 days","Pending after 28 days"}

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors