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.
Dear community members,
I am trying to find a solution for a lead time calculation which is based on single confirmations in a process.
My table in Power BI looks like this (sorted for order number):
I would like to calculate the lead time between two confirmations (rows).
The calculation itself is only ISDD - ISDD Predecessor.
However, I don't know how to get the predecessor date and time.
The dependency/logic would be for each predecessor cell:
I've tried it in excel before. With sorting it is more less easy, but I don't know how to do it here.
Any ideas how to solve this?
Thanks in advance!
Solved! Go to Solution.
Add a column =
ISDD predecessor= CALCULATE ( MAX ( YourTableName[ISDD]), ( FILTER ( YourTableName, EARLIER (YourTableName[Order] ) = YourTableName[Order] && EARLIER ( YourTableName[ISDD] ) > YourTableName[ISDD] ) ) )
Without the workbook is hard to get it right, but try that first 🙂
Lastly the difference in day you get it like this:
add column
=DATEDIFF([ISDD predecessor],[ISDD],DAY)
Add a column =
ISDD predecessor= CALCULATE ( MAX ( YourTableName[ISDD]), ( FILTER ( YourTableName, EARLIER (YourTableName[Order] ) = YourTableName[Order] && EARLIER ( YourTableName[ISDD] ) > YourTableName[ISDD] ) ) )
Without the workbook is hard to get it right, but try that first 🙂
Lastly the difference in day you get it like this:
add column
=DATEDIFF([ISDD predecessor],[ISDD],DAY)
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |