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

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.