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
vishalkoundal
New Member

Facing Problem with datediff Subtotal Function

I have a Calculated time Difference Between Dates result are accurate when i see data datewise but in Subtotal Area i Want Sum.

How i can do this in Excel Power Pivot Data Model.

 

Measure

Time Spend in Hrs = DATEDIFF(MIN(B2B[Check In]),MAX(B2B[Check Out]),MINUTE)/60

 

result

vishalkoundal_0-1738748605133.png

 

Result i need Like this.

vishalkoundal_1-1738748720501.png

 

0 REPLIES 0

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric 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.