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
RuthMerchán
Helper I
Helper I

Add AVERAGE TOTAL ROW in a matrix

Hi everyone!

 

I would like to know if possible to add an average total (included sum total) to the right of the following matrix?

 

RuthMerchn_0-1687990933717.png

 

As you can see, we have total sum 73 and 80 for category A and B. Furthermore, I would like to have to the right of this total, the average total. I mean 18,25 and 26,66 for category A and B, respectively.

Is this possible?

 

Thank you for your support!

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @RuthMerchán 

You can manipulate your totals with functions as is filtered/hasonevalue/isinscope etc.
Example :

Test = if (ISFILTERED('Table'[Sub Category]),sum('Table'[Value]),AVERAGE('Table'[Value]))
Ritaf1983_0-1688003634006.png

Link to sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @RuthMerchán 

You can manipulate your totals with functions as is filtered/hasonevalue/isinscope etc.
Example :

Test = if (ISFILTERED('Table'[Sub Category]),sum('Table'[Value]),AVERAGE('Table'[Value]))
Ritaf1983_0-1688003634006.png

Link to sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 ! As I was interested in showing not only total sum but also total average, the formula that helped me was the following:

Promedio_Semanal =
IF (
    ISFILTERED(DIM_TIME[DAY_DESC]),
    BLANK(),
    AVERAGEX (
        VALUES(DIM_TIME[DAY_DESC]),
        [VALUE]
    )
)
So, I got this result, without show average also for each day:

RuthMerchn_0-1688902138128.png

 

Thank you for giving me some idea! 🙂



Glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.