Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

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

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

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.

 

lbendlin_0-1663458692761.png

see attached

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

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.

 

lbendlin_0-1663458692761.png

see attached

Anonymous
Not applicable

Thank you Ibendlin,

I tried your solution and it worked perfectly 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.