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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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