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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
pedroccamaraDBI
Post Partisan
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

Thank you all in advance
1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @pedroccamaraDBI ,

 

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.

View solution in original post

4 REPLIES 4
v-rzhou-msft
Community Support
Community Support

Hi @pedroccamaraDBI ,

 

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.

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

tamerj1
Super User
Super User

Hi @pedroccamaraDBI 

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

Hi @pedroccamaraDBI,

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

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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