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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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