Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedBe 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!
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |