Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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!

  • 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.

     

1 Reply

  • 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.