cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

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
Community Support
Community Support

Hi @mstuve ,

 

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
Community Support
Community Support

Hi @mstuve ,

 

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

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

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

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

Top Solution Authors
Top Kudoed Authors