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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
bipro-atlanta
Frequent Visitor

Average Grand Total doesn't calculate correctly

Currently , i am looking for Average in Grand total but apparently ,which ever way i write Dax my Total only aggregates instead of Average. 

 

In attached example the average that i am expecting is  0.875 for my test measure in grand total apparently , it only adds up and doesn'tr resolve the context 

 

Here is my Dax for TEST  measure 

Test =
IF(
ISFILTERED('Funding Source'[Allocation]),
(Sum('Capacity Fact'[AllocationAmountin Minutes])/Sum('Date'[Is Weekday]))/480,
Sumx('Provider Capacity Fact' ,
'Capacity Fact'[AllocationAmountin Minutes]/Sum('Date'[Is Weekday])/480
))

 

this should be 0.88*2/2 = 0.88this should be 0.88*2/2 = 0.88

6 REPLIES 6
parry2k
Super User
Super User

@bipro-atlanta Please share data in excel using onedrive/google drive to get your answer quickly. Remove any sensitive information before sharing.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@bipro-atlanta there is lot of data, would have been nice if you shared pbix file, unfortunately don't have time to go thru each and every sheet on shared dataset.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k  - Did you get chance to take a peak at the PBIX File ?

I uploaded the .PBIX File on the same location 

 

The measure i played in two different format are 

 

Test 

AllocationTest 

 

Both seems to be giving different results 

 

 

https://yvspartnersllc-my.sharepoint.com/personal/nsomani_yvspartners_com/_layouts/15/onedrive.aspx?...

 

@bipro-atlanta hey I will look at this later today, bit busy for last few days. sorry for the delay.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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