Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How do I create a dynamic slicer for calculating varying cycle times

I have a project that contains multiple stages where a date is recorded, I want to calculate the cycle times between the stages.

As the project contains over 10 stages I want to make it easy for the end user to select the starting stage and the ending stage and have the report calculate the cycle time rather than pre-calculating all possible cycles in the data transformation.

 

Example data

Item Line No.Stage_1Stage_2Stage_3Stage_4Stage_5Stage_6Stage_7
318037314/09/202014/09/202026/10/202014/09/202014/09/202016/10/202018/01/2021
318037414/09/202021/09/202028/10/202014/09/202025/09/202029/10/202016/09/2020
318037614/09/202014/09/202023/09/202014/09/202017/09/202022/10/202029/12/2020
318037814/09/202015/09/202028/09/202014/09/202015/09/202017/09/202013/10/2020
318038014/09/202016/09/202030/11/202014/09/202016/11/202011/12/202023/10/2020

 

Example end-user selection 

Selection Start: Stage_2

Selection End: Stage_7

Output: Average Cycle time

 

Example end-user selection 

Selection Start: Stage_3

Selection End: Stage_5

Output: Average Cycle time

 

 

  • First step would be to unpivot the data to bring it into usable format.  Note that your sample dates are out of sequence (later stages have earlier dates) - please correct as needed.

     

    see attached

2 Replies

  • First step would be to unpivot the data to bring it into usable format.  Note that your sample dates are out of sequence (later stages have earlier dates) - please correct as needed.

     

    see attached

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you Ibendlin,

      I tried your solution and it worked perfectly