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.
Hi everyone,
I looking for a solution where I have 2 timestamp and will calculate the differents between them.
When i calculate the differents I get a negative value if the first timestamp is later than the second one, like this.
Travel time is differents in minutes.
I need the value 1350 (minutes)
How can I solved this?
Solved! Go to Solution.
Hi,
You are correct I had the wrong idea. This should work:
Proud to be a Super User!
Hi,
I assume that if the timestamp is lower we will assume it is on next day. Here is an example on how to build this:
Dax:
If the time is lower we add 12 hours in minutes (720) and compare the second time to midnight. Otherwise we compare normally.
Proud to be a Super User!
Hi @ValtteriN ,
Thank you for your quick answer.
Your solution is not the solution that i need.
Time 1: 14:00
Time 2: 13:00
Different is 1350 minutes and not 1500 minutes so you have in your example.
Hi,
You are correct I had the wrong idea. This should work:
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 |
---|---|
45 | |
25 | |
19 | |
16 | |
8 |
User | Count |
---|---|
71 | |
49 | |
45 | |
20 | |
17 |