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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors