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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Creating a fixed average that doesn't filter

Good evening all!

 

I have a problem in front of me that i am struggling to solve.   I have created a Matrix to show the details of a campaign down to the Average cost per Unit for that campaign.  Im now being asked to show the difference between the Regions average and the Overall Campaign average.  I have the table built, but for the life of me can't figure out how to make the measure that will show the Constant Average.    Please see sample data below.

 

What i have.

Campaign NameService TypeCountryCostUnitsAvg cost/Unit
Campaign 1HourlyPortugal236.312.594.52
  Spain396.88499.22
 Hourly Total 633.196.597.41
 UnitBaltics3168.036528.01
  Dubai577.061577.06
  Greece1633.073544.36
  Portugal818.612409.31
  Spain1154.122577.06
 Unit Total 7350.8914525.06

 

 

What I need

Campaign NameService TypeCountryCostUnitsAvg cost/UnitCampaign AvgDifference Against Campaign Avg.
Campaign 1HourlyPortugal236.312.594.5297.41-2.89
  Spain396.88499.2297.411.81
 Hourly Total 633.196.597.4197.410.00
 UnitBaltics3168.036528.01525.062.94
  Dubai577.061577.06525.0652.00
  Greece1633.073544.36525.0619.29
  Portugal818.612409.31525.06-115.76
  Spain1154.122577.06525.0652.00
 Unit Total 7350.8914525.06525.060.00

 

Its the last two columns on the second table giving me issue.   Any help would be greatly appreciated!  I hope i have given enough information.

 

Thanks again!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

One of many ways to solve this is to use ALLEXCEPT function.

All measures are in the attached pbix file.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

One of many ways to solve this is to use ALLEXCEPT function.

All measures are in the attached pbix file.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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