Hi @richmont ,
Does this have to be DAX, or is Power Query ok? I believe Harsh’s response on the below thread should help you with this. It goes through the process of getting data from the previous line, in your case the probability. From there you can then do some conditional logic on your closed lines.
Greg also has a DAX solution on the same thread.
Calculate days between manufacturing steps - DAX Calculations - Enterprise DNA Forum