Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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_1 | Stage_2 | Stage_3 | Stage_4 | Stage_5 | Stage_6 | Stage_7 |
3180373 | 14/09/2020 | 14/09/2020 | 26/10/2020 | 14/09/2020 | 14/09/2020 | 16/10/2020 | 18/01/2021 |
3180374 | 14/09/2020 | 21/09/2020 | 28/10/2020 | 14/09/2020 | 25/09/2020 | 29/10/2020 | 16/09/2020 |
3180376 | 14/09/2020 | 14/09/2020 | 23/09/2020 | 14/09/2020 | 17/09/2020 | 22/10/2020 | 29/12/2020 |
3180378 | 14/09/2020 | 15/09/2020 | 28/09/2020 | 14/09/2020 | 15/09/2020 | 17/09/2020 | 13/10/2020 |
3180380 | 14/09/2020 | 16/09/2020 | 30/11/2020 | 14/09/2020 | 16/11/2020 | 11/12/2020 | 23/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
Solved! Go to Solution.
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
Thank you Ibendlin,
I tried your solution and it worked perfectly
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
89 | |
52 | |
45 | |
39 | |
38 |