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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DJNationals
New Member

New Measure Trouble in PowerBI - Subtracting a Measure by an Average of Other Measures

I am trying to create a measure in order to apply the values to a visual in powerBI. In excel, the values would be as follows:

"Relative Value of Innovation"=avg(IN)-avg(PC,HR,MO)

Where,

IN=innovation

PC=process control

HR=human relations

MO=mission outcomes

If i were doing this formula in excel i would create a pivot table of all of the values in the data set to provide an average of each of the four values above (IN, PC, HR, MO). Within PowerBI I have already created a measure to average each of those values:

DJNationals_0-1664465786015.png

Here is the formula for the Average of AVE Org HR for reference:

DJNationals_1-1664465825308.png


The last step I am trying to make is to subtract the Average of AVE ORG Innovation by the sum of the average of the Average of AVE ORG Human Relations, Mission Outcomes, and Process Control. I have tried creating a new measure for this process, but am not as fluent in DAX to make this happen. 

Below is my attempt at this formula in the new measure field in powerBI:

DJNationals_2-1664465999745.pngDJNationals_3-1664466027333.png

Should this be done as a two step process, where first i would need to create a measure to average PC, HR, and MO. Then after creating that measure, create another measure where it would subtract the Average of AVE ORG Innovation by the measure of the average of PC, HR, and MO? If so, what would both of those steps look like?

thank you for the help in advance!

1 ACCEPTED SOLUTION

This worked perfectly! Matches correctly with the historical data as well! Thank you for the help.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @DJNationals ;

I'm very happy to be able to help you, if I help you, can you mark me by the way?

Thank you !


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @DJNationals ;

Try it.

newmeasure =
[Average of innovation]
    - DIVIDE (
        [Average of process control] + [Average of human relations] + [Average of mission outcomes],
        3
    )

If not fight, can you share a simple example and your expected result with backend logic?


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This worked perfectly! Matches correctly with the historical data as well! Thank you for the help.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.