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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Filtering 2 of 4 measures within the same visual

I am trying to create a visual to compare one location's average number of days an issue is opened to the overall average. 

 

My data table looks as such, 

Column 1: Location (4 different locations) 

Column 2: Year (2016-2018) 

Column 3: Issue status (categorical data)

Column 4: Total number of issues 

 

I created two measures to calculate the percent of issues closed within two different specific timeframes by location and year. I then created two more measures to calculate the overall average of the original measures (esentially calculating the average of averages). 

 

I want to use one visual to show how each separate location compares to the overall average for the two timeframes. I now have all 4 measures in one visual, and I need to filter 2 of the measures while leaving the other 2 constant.  I want to filter the bar by location but keep the lines the same to represent statewide average (so the visual will be location 1 average compared to overall average, then same visual can be location 2 compared to overall average, etc.),. In other words, I need to filter the bar graphs but NOT the line graphs. 

 

Below is an example of my visual and how I have the data stored in the connected database. I cannot share my pbix file as this is confidential data. Any help is greatly appreciated. Thank you!

 

 

Sample 1.jpg

sample 2.jpg

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

Hi @Anonymous ,

 

If you want a static line which ignores all slicers, you could add ALL('Table') condition in your average measures.

If you want a line only filterd by date, you could add ALL('Table'[location]) condition in your average measures.

If you want a static line only filterd by location, you could add ALLSELECTED('Table') condition in your average measures.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want a static line which ignores all slicers, you could add ALL('Table') condition in your average measures.

If you want a line only filterd by date, you could add ALL('Table'[location]) condition in your average measures.

If you want a static line only filterd by location, you could add ALLSELECTED('Table') condition in your average measures.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Thank you!! The All ('Table', [location]) filter worked! I really appreciate all your help! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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