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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
TamilselviK
Helper I
Helper I

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 @TamilselviK 

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 @TamilselviK 

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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