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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
cruzp
Helper V
Helper V

Show the Average Total for Avg calculation and Sum Total for Sum calculation in Grand total

Hello PBI folks,

 

How do i make the Avg Daily Rate Grand Total (red box) similar to the one in Tableau (green box) where it shows the Grand Avg for the Avg Daily Rate?

 

cruzp_0-1698720853173.png

Expected output:

 

cruzp_1-1698720899690.png

 

Thanks!

 

4 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @cruzp 
Totals problems are a known issue.
Please refer to the linked tutorials about workarounds to fix this problem :

https://www.youtube.com/watch?v=dgwsk2fjWLc

https://www.youtube.com/watch?v=yw0QHu9V4UQ&t=617s

https://www.youtube.com/watch?v=wHAWZzVS48Q

Also, there is an idea of @Greg_Deckler about the issue, please vote for it :

https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

 

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

Hi @cruzp 
Try to use averagex as @audreygerred  suggested.
To assist more I need data to work

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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

Hi @cruzp  The measure is :

fixed AVG = AVERAGEX(SUMMARIZE(FACT_TIME_SHEET,'DIM_EMPLOYEE'[EMPLOYEE_BK],'FACT_TIME_SHEET'[BILLING_CURRENCY]),[Avg Daily Rate])
I used a method of Goodly (the second tutorial that I linked in my first response)
 The fixed pbix is attached

 

Ritaf1983_1-1698735226570.png

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

Hi @cruzp 
Yep, with this formula you are creating a "virtual table" and then summarizing it (similar to the pivot logic of Excel).

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

11 REPLIES 11
audreygerred
Super User
Super User

Hi! The AVERAGEX function should get you where you want to be AVERAGEX function (DAX) - DAX | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Can't seem to make it work. Any chance you can assist on the calculation?

If you could upload a pbix file, I can take a look





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Ritaf1983
Super User
Super User

Hi @cruzp 
Totals problems are a known issue.
Please refer to the linked tutorials about workarounds to fix this problem :

https://www.youtube.com/watch?v=dgwsk2fjWLc

https://www.youtube.com/watch?v=yw0QHu9V4UQ&t=617s

https://www.youtube.com/watch?v=wHAWZzVS48Q

Also, there is an idea of @Greg_Deckler about the issue, please vote for it :

https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

 

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

Can't seem to make it work as I tried following the youtube tutorials. Any chance you can assist on the calculation?

Hi @cruzp 
Try to use averagex as @audreygerred  suggested.
To assist more I need data to work

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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

Hi @cruzp  The measure is :

fixed AVG = AVERAGEX(SUMMARIZE(FACT_TIME_SHEET,'DIM_EMPLOYEE'[EMPLOYEE_BK],'FACT_TIME_SHEET'[BILLING_CURRENCY]),[Avg Daily Rate])
I used a method of Goodly (the second tutorial that I linked in my first response)
 The fixed pbix is attached

 

Ritaf1983_1-1698735226570.png

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

I saw that the BILLING CURRENCY is included in the formula. What if i wanted to add a new descriptive field next to it? 


does it mean that any fields that I would add in the granularity of the table should be added in the calculation? @Ritaf1983 

Hi @cruzp 
Yep, with this formula you are creating a "virtual table" and then summarizing it (similar to the pivot logic of Excel).

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.