Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone, its a dummy data i will need some help to solve the calculation of the time between the top task end in yellow and the next start time in red.
I appreciate your time.
Regards
AS
Something like the following might work for you.
timeDiff =
var _current =
[Start dateTime]
var _lastEnd =
CALCULATE(
MAX([End dateTime]),
FILTER(
all('Table'),
[End dateTime] < _current
)
)
Return
DATEDIFF(_lastEnd, _current, MINUTE)
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 133 | |
| 118 | |
| 82 | |
| 56 |