The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I need help with this dax, when I substract two times and one of them is higher than the other one, it gives me a negative result. How can I resolve this problem?
Here is the Dax Im using rigth now but is not working correctly, I dont know if I have to use the If(). The problem is I dont how to use it in my current Dax.
Solved! Go to Solution.
@Incuseg , In date diff, first use smaller value .
else we need to adjust for day end
if([End Time] < [Start Time], datediff([End Time]+1, [Start Time], second) ,datediff([End Time], [Start Time], second) )
@Incuseg , In date diff, first use smaller value .
else we need to adjust for day end
if([End Time] < [Start Time], datediff([End Time]+1, [Start Time], second) ,datediff([End Time], [Start Time], second) )
Thank you very much for your help, but now I have another problem. When I added new information, it gives me the result of the seconds in negative when it should be positive. How can i solve this?
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |