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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

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

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.