March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a table with Employee Code, Punch In and Punch Out values. The Data Type is Date/Time. I am trying to calculate hours:minutes for each employee and then sum all hours:minutes. I used this DAX statement
TODAY_HOURS = DATEDIFF('tick'[drvt.punch_in_time_1], 'tick'[drvt.punch_out_time_1],HOUR)
It looks wrong. Please help
Solved! Go to Solution.
Hi @sureshsonti,
Seems these two columns don't have proper data type. Please check and change them into time.
Best Regards,
Dale
Hi @sureshsonti,
Could you please tell me if you get the answer or the solution?
Best Regards,
Dale
Dale,
Your solution solved my issue. Thanks for your help.
Hi @sureshsonti,
Seems these two columns don't have proper data type. Please check and change them into time.
Best Regards,
Dale
I believe the DATEDIFF ( ) requires the datetime value not just the time value. Try it with a datetime field.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |