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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Sum with filter grand total not working

Yes this is my first post and I am new to Power BI.  I am developing a utilization report and I have a table with dates and work hours in it along with a bunch of other stuff like if it is a weekend etc.  Basically I am comparing the number of hours worked from timecards compared to the number of working hours for that day to come up with a utilization.  I have a measure with a filter that works fine on the row but the grand total is simply displaying the max value.

 

520 Hours is correct if the employee worked the entire quarter so I am getting the results I want on the row but I need grand totals and the ability to calculate based on the grand total in other visuals.

 

Thanks for any help you can offer 🙂 

 

Den = CALCULATE (SUM ( DateDimension[Hours] ),FILTER (Util,Util[Transaction Date] >= min(Util[Transaction Date])
&& Util[Transaction Date] <= MAX(Util[Transaction Date])))

 

Denominator.png 

Structure.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Create a new measure using DAX below then check if the measure returns correct grand total.

Measure = IF(COUNTROWS(VALUES(YourTable[Employee ID]))=1, [Den],SUMX(VALUES(YourTable[Employee ID]),[Den]))



Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous,

Create a new measure using DAX below then check if the measure returns correct grand total.

Measure = IF(COUNTROWS(VALUES(YourTable[Employee ID]))=1, [Den],SUMX(VALUES(YourTable[Employee ID]),[Den]))



Regards,
Lydia

Anonymous
Not applicable

Thanks much!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors