Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |