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
Jaweed
Helper III
Helper III

Help in matrix total

Hi all

Can you help me. I would like some columns to show the average, while others the sum. In the first column, I want the 'total' to appear as 7 ( ie average of 6 and 8 ), Whereas column No of Complaints should be the Sum, as it is now. How can I achieve so? I attacj my sample Excel sheet. There is a colum in the Excel cnamed Units, which determine if the aggregation is either Sum or Average. I added a clolum CFL in the pbix for the parent Company ( which holds CPYA and CPYB) to appear in the visual.  I will also use Filter as below.Many thanks.

 

Jaweed_2-1713625987251.png

 

Sample Data Sheet.

CompanyMonthMetricValueUnit of Measure
CPYA24-JanRevenue20000Units
CPYA24-Jan% Profit60%
CPYA24-JanNo of Complaints3Units
CPYA24-Jan% Leavers6%
CPYB24-JanRevenue25000Units
CPYB24-JanPercentage  Profit30%
CPYB24-JanNo of Complaints6Units
CPYB24-Jan% Leavers4%
CPYA24-FebRevenue10000Units
CPYA24-Feb% Profit20%
CPYA24-FebNo of Complaints2Units
CPYA24-Feb% Leavers8%
CPYB24-FebRevenue12000Units
CPYB24-Feb% Profit10Percentage
CPYB24-FebNo of Complaints1Units
CPYB24-Feb% Leavers2%

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

lbendlin_0-1713645492431.png

see attached.  I cleaned up your sample data a bit.

 

View solution in original post

2 REPLIES 2
Jaweed
Helper III
Helper III

Thank you so much Ibendlin.  It works amazingly. Words are not enough to thank you.

lbendlin
Super User
Super User

lbendlin_0-1713645492431.png

see attached.  I cleaned up your sample data a bit.

 

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.