Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I want to calculate a date/time + time to get results in date/time.
My data setting is following:
Column A: Date/time [DD:MM:YYYY hh:nn:ss]
Column B: Time [hh:nn:ss]
Results in column C should be
Column A + Column B= Column C (date/time [DD:MM:YYYY hh:nn:ss])
I tried to set up this formula but it doesn't work.
Thanks for help,
Petr
Solved! Go to Solution.
Hi @Anonymous ,
You can use the following measure to convert Decimal number [in hours] to Time value
Measure =
VAR vSeconds =
MAX ( 'Table'[Hours] ) * 3600
VAR vMinutes =
INT ( vSeconds / 60 )
VAR vRemainingSeconds =
MOD ( vSeconds, 60 )
VAR vHours =
INT ( vMinutes / 60 )
VAR vRemainingMinutes =
MOD ( vMinutes, 60 )
RETURN
TIME ( vHours, vRemainingMinutes, vRemainingSeconds )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi,
I've found the different issue.
I have the Number of hours in decimal number, which I transfer to time format. But if decimal nubmer is higher than 24, the time is then incorrect.
So I need to calculate following vallues:
Column A: Date/Time [dd:mm:yy hh:mm:ss]
Column B: Decimal number [in hours]
I need to calculate columna A + B to get result in Date/Time.
Thanks
Petr
Hi @Anonymous ,
You can use the following measure to convert Decimal number [in hours] to Time value
Measure =
VAR vSeconds =
MAX ( 'Table'[Hours] ) * 3600
VAR vMinutes =
INT ( vSeconds / 60 )
VAR vRemainingSeconds =
MOD ( vSeconds, 60 )
VAR vHours =
INT ( vMinutes / 60 )
VAR vRemainingMinutes =
MOD ( vMinutes, 60 )
RETURN
TIME ( vHours, vRemainingMinutes, vRemainingSeconds )
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.