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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Measure that sums a calculation for each type

Hi everyone,

 

I am hoping you can help. As shown in the attached .pbix, I am trying to create a measure that does a calculation for each type of unit.

 

https://www.dropbox.com/transfer/AAAAAI7QwxfiEXZVRyFwMUAlDwzO_TqBV0YNUKIAgJTeNjcKO2HtDKE

 

Here's the context:

I have three types of tasks (A,B, and C) that are supposed to take a certain amount of time (target). My data show their actual time compared to their target.

 

I am supposed to use geometric means (rather than arithmetic means) to show average performance, which I have done through a few measures.

 

Here is where I need help: To show opportunity, I want to do a summation of the difference between geometric mean acutal and geometric mean target, for each type of task. In the .pbix, I have done this on a row level, but I am not able to aggregate it. My total opportunity shows 0.88 when it should equal 4.99 (0.41+0.25+4.33).

 

Can anyone help? I'd really apprecaite it!

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

try this

 

Opportunity Try 1 = SUMX(VALUES('Sample'[Type]),[Geometric Mean Actual]-[Geometric Mean Target])

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

2 REPLIES 2
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

try this

 

Opportunity Try 1 = SUMX(VALUES('Sample'[Type]),[Geometric Mean Actual]-[Geometric Mean Target])

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.