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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
cruzp
Helper III
Helper III

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!

 

1 ACCEPTED SOLUTION

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

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

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

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

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).

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.