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
Anonymous
Not applicable

How to get total as sum and average

Hi ,

 

In Power BI Matrix visual i want to get Col1 Total as SUM(Col1) and AVGCol2 as Avergae of the Column total meaning (AVG(Row1:Row3)). How can i achieve this?

 

 Col1AVGCol2
Row11019.72
Row2910.18
Row3631.69
TOTAL2520.53

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

Firstly you need to add a "Row Index" in your data model. We need to add it into Matrix Row Field.

Then add Col1 and Col2 into Matrix Value Field. We can use SUM and AVERAGE Function in Value Field.

My Sample:

1.png

SUM and AVERAGE Function in Value Field

3.png

Matrix:

2.png

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

Firstly you need to add a "Row Index" in your data model. We need to add it into Matrix Row Field.

Then add Col1 and Col2 into Matrix Value Field. We can use SUM and AVERAGE Function in Value Field.

My Sample:

1.png

SUM and AVERAGE Function in Value Field

3.png

Matrix:

2.png

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. 

 

 

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors