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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Matrix - replace Total per row with Average

A matrix typically will list totals at collumn and row level. In order to better analyse monthly variances, I would like to compare the lastest month's numbers with the YTD monthly average. So I basically would like to see an "Average" column rather than a "Total" column as per below. The column totals in the bottom row can stay. Is this possible?

PBI.jpg

2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous,

 

Yes, it is possible. You can add if statement to check total level and write a specific formula for calculation of total level, then use condition to replace calculation on total level with that formula.


If you are confused on coding formula, please share some sample data or pbi file that we can test and coding formula on it.

 

Regards,

Xiaoxin Sheng

Chihiro
Solution Sage
Solution Sage

There are many ways to do it.

 

1. Calculate measures separately for each month, and also have measure for average. Then add each into Values field in sequence. Turn off Total columns.

 

2. Use two separate visual, one for monthly values, and another for average.

 

3. Use custom visual (R-Visual to create matrix on the fly, or one from the store, that suites your need).

 

Total column isn't able to do average calculation as far as I know.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors