Forum Discussion

joshua1990's avatar
joshua1990
Post Prodigy
3 years ago
Solved

Time left based on Matrix

Hi all!

I have a table like this:

Work Order Nr Step 1 - Start Step 1 - End Step 2 - Start Step 2 - End
A100 01.07.2022      
B100 01.07.2022 01.08.2022 01.09.2022  
C101 01.08.2022 01.09.2022 02.09.2022 03.09.2022
D104 01.09.2022 04.09.2022    

 

Per column I have the start and end date per Step for each Work Order.

Then I have a matrix that shows me the expected days left for each Step:

 

Step Start End
Step 1 30 25
Step 2 20 18
Step 3 15 10
Step 4 10 5

 

Now I would like to calculate the number of days left for each work order based on the last date tracked and the matrix. 

This should include the number or days that already orrured for the individual step.

 

How would you do that with DAX?

3 Replies