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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Aggregate Order and Calculate

I have a measure that I want to improve upon.  I want to arrive at

 

sum(Available Minutes Per Provider Per Day)

 

but I am not sure what DAX expression functions to use to get Available Minutes Per Provier Per Day before summing.

 

This is my current calculation that works for testing purposes for individual cases, but it starts to break down because the order of operations logic isn't built into it for summing multiple cases.

 

Net Available Minutes  =

(Sum(v_reportingCalendarCalculated[Net Available Minutes])

/

count(v_reportingCalendarCalculated[ProviderId])) * DISTINCTCOUNT(v_reportingCalendarCalculated[ProviderId]) * DISTINCT COUNT(v_reportingCalendarCalculated[Date])

 

Thank you for your help!

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Could you please mark the proper answer if it's convenient for you? That will be a help to others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Hi,

 

Do I miss something? This can be done without a measure if your data looks like this. Could you please post little sample or fields of the table?

Aggregate Order and Calculate .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors