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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RIDWIV
Helper I
Helper I

Addition of time from multiple column

RIDWIV_0-1682599014733.png

Hello @all,  I want to add timestamp from different olumn and get the exact result. Any idea how it c

5 REPLIES 5
Anonymous
Not applicable

No, I was saying that you should changed the types to number, did you use Int64.Type (whole number)? This way, 3AM becomes .125, 6AM becomes .25, 12PM becomes .5, and so on until a full day is 1. Since your example has the time stamps as time, so row 4 would equal 16 hours ten minutes, or about .67361111. Then you just convert that total back to a time, and you'll get 4:10 PM, and if you need that value as a duration, just wrap it all in Duration.From.

 

--Nate

@Anonymous actually i need to find time differences from one stage to other.....and then there sum and then there average. what happening is whenever there is second value is less than first value it itself getting substract which occurs mismatch in time

Anonymous
Not applicable

I would convert to number, then do the addition. Then convert back to time.

 

--Nate

@Anonymous sorry it did not worked and also time addition is different.....once it reaches to 60 it itself convert to 1 hour

Please see this article. You can convert all your time columns to decimal, do your math in a measure, and then format it at the end.

Calculate and Format Durations in DAX – Hoosier BI

Pat

Microsoft Employee

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors