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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
GSB0302
Frequent Visitor

Displaying Average instead of Sum

Hello community,

 

I am working on a Matrix where I want to see the sum of a measure I created called "Average Sales Price"

 

GSB0302_0-1715877546713.png

Right now it's just displaying the average of everything. I want to see the overall sum of the average sales price of all of these parts for each section, and the sum of the overall average sales price of the sections for each sytem (name of which I blacked out for privacy purposes).

 

When I go to my average sales price value it does not give me an option to summarize

GSB0302_1-1715877663286.png

Any advice on how to achieve this, or if it's achievable at all would be appreciated.

 

Thanks

6 REPLIES 6
v-yohua-msft
Community Support
Community Support

Hi, @GSB0302 
Based on your information, I create a table:

vyohuamsft_1-1716175319642.png

 

Maybe you can create a measure to calculate total value:

Sum of Avg Sales Price = SUMX('Table', [Average Sales Price])

Then put it in Value, here is my preview:

vyohuamsft_0-1716174866838.png

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@GSB0302 , Based on what all level do you want sum

 

Sumx(Summarize(Table, Table[TG System Group], Table[Level one column], "_1", [Your Avg Measure]) , [Measure])

 

Avg of Sum : https://youtu.be/cN8AO3_vmlY?t=22980

Bumping this because I am still having this issue. I attempted this solution, but the totals for the section don't look like they're adding up correctly? Please any help here would be appreciated. I included the measure I createad to show.

 

GSB0302_0-1716298148560.png

 

Hi, @GSB0302 

You just put the Avg metric into SUMX, and that's it

Sum of Avg Sales Price = SUMX('Table', [Average Sales Price])

vyohuamsft_0-1716364961434.png

Here's a comparison, you can take a closer look at what's the difference, the total is aggregated, but it's still the average between them.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

This does not work

GSB0302_0-1716382183063.png

 

Helpful resources

Announcements
Europe Fabric Conference

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 Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.