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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jebilaya
Helper III
Helper III

Row total within Matrix

Hi

 

I have a matrix table which is calculating average driver ratings of scores but I want to also include a column that just has the total number of results that have gone into the average.  Any ideas?

 

Screen shot below

 

Jebilaya_0-1650540010739.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jebilaya ,

 

If you just want to change the column total in matrix visual, please try:

Change Total = IF(HASONEVALUE('Table'[Date]), FORMAT( [Percentage] ,"0.00%"), FORMAT( [Sum], "##")) 

Eyelyn9_0-1650950913394.png

Since the percentage measure and sum measure are in different formats——Decimal Number type with % and Whole Number type, I used FORMAT() to custom the display format. So in this case, the measure returns Text type.

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Jebilaya ,

 

If you just want to change the column total in matrix visual, please try:

Change Total = IF(HASONEVALUE('Table'[Date]), FORMAT( [Percentage] ,"0.00%"), FORMAT( [Sum], "##")) 

Eyelyn9_0-1650950913394.png

Since the percentage measure and sum measure are in different formats——Decimal Number type with % and Whole Number type, I used FORMAT() to custom the display format. So in this case, the measure returns Text type.

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jebilaya
Helper III
Helper III

Thanks for your response @amitchandak 

I can add a measure that allows the number of results  but it puts it in for each period as well, but I just want it for the total

 

Jebilaya_0-1650545145530.png

 

amitchandak
Super User
Super User

@Jebilaya , You can replace the total with another total, I doubt you can add another one

 

if(isinscope(Table[Month]), [Measure], averageX(Values(Table[Month]), [Measure]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.