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
Anonymous
Not applicable

Trying to create bar chart with 2 bars - one bar that is unaffected by slicer and one that is

Hello,

 

I have a measure in my report that calculates the average deal size in my sales data. I am trying to create a bar chart with 2 bars - both of them showing that measure, but one of them showing the average of the total data set and the other bar showing the average of the selected employee. In other words, I want one of the bars to be unaffected by the slicer and stay constant with the average of the entire data set and the other bar to be affected by the salesperson that is selected.

 

For example, in the sample report I've linked below, the average new deal for all is $68 while Mary's average new deal is $15. I want a bar chart to show Mary's $15 average and the $68 total average, and the $15 bar switches for who I have selected.

 

Sample Dashboard: https://www.dropbox.com/s/c43c65d11m07exo/Dummy%20Data.pbix?dl=0

 

The reason why I'm having trouble is because the DAX for my average measure is complicated, as follows: 

 
Average New Business for All ($) = var _table=SUMMARIZE(FILTER(sheet1,Sheet1[Type]="New"),Sheet1[Deal #],Sheet1[Type],"_value",CALCULATE(SUM(Sheet1[Price]))) return AVERAGEX(_table,[_value])+0

  

 

Thank you for your help on this.

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

You should be able to use ALLEXCEPT or REMOVEFILTERS in a measure to exempt one of the columns/bars.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

You should be able to use ALLEXCEPT or REMOVEFILTERS in a measure to exempt one of the columns/bars.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Removefilters worked perfectly. Thank you!

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