cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Partisan

## How to sum averages

Hello everyone
I have a simple measure that calculates the average:

Net Cost Detail AVG =
AVERAGEX( 'Product Cost Detail', 'Product Cost Detail'[Net Cost Detail])

I would like to have at the end of the visual the sum of all those values

My Net Cost Detail measure is a simple SUM of a column

1 ACCEPTED SOLUTION
Community Support

According to your statement, I think [Net Cost Detail AVG] is a measure, so it will work when you add it into a visual. The result of measure is based on the key columns in your visual, so I suggest you to try SUMX() function based on [Net Cost Detail AVG].

``````New Net Cost Detail AVG =
SUMX (
SUMMARIZE ( 'TableName', [KeyColumnName1], [KeyColumnName2],... ),
[Net Cost Detail AVG]
)``````

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 REPLIES 4
Community Support

According to your statement, I think [Net Cost Detail AVG] is a measure, so it will work when you add it into a visual. The result of measure is based on the key columns in your visual, so I suggest you to try SUMX() function based on [Net Cost Detail AVG].

``````New Net Cost Detail AVG =
SUMX (
SUMMARIZE ( 'TableName', [KeyColumnName1], [KeyColumnName2],... ),
[Net Cost Detail AVG]
)``````

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Post Partisan

Hi @v-rzhou-msft
I'm so sorry for this  (very) late reply  and thank you so much for your help

Super User

that depends on the visual itself i.e. over which column are you calculating the the average? Can you paste a screenshot?

New Member

Try this - SUMX('Product Cost Detail', AVERAGE('Product Cost Detail'[Net Cost Detail]))

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

#### Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors