Showing results for 
Search instead for 
Did you mean: 
New Member

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?


Community Support
Community Support

HI @udewachter,


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.



Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors