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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tmul
Frequent Visitor

Move data in time

Hi, 

I have a project, where I need to add a time shift for a few cases. My original data contains an amount, the project and the years. 
Now I implemented the possibility to move the different projects in time. I can move all projects or only a few of them by a fixed number of years. For this, I use a filter for the time shift, e.g. the user can choose a number between 0 and 20 to move the project and a filter for the projects, where the user can choose one or more projects which should be moved by the time in the filter.
Now comes the problem, I need to move different projects by a different amount of years, e.g. project A should move 5 years, Project B should not move at all and Project C should move two years in time. 

Sample data set:

YearProjectAmount
2021A5
2021B10
2021C10
2022A10
2022B5
2022C2


After the example time shift from above, the table should look like this:

 

YearProjectAmount
2021B10
2022B5
2023C10
2024C2
2026A5
2027A10

 

 

Any idea how to do that nicely? I have seen a solution where I need to generate a measure for each project and then a filter for each project, giving the start year. This is too complicated and not really applicable. This project should than be rolled out to the next department, where there is another number of projects, so it should be as general as possible. 
I guess, a possibility could be to restrict the possible shift to only 5 different years, then I would need 5 filters for the time shift and 5 for the project. But not sure if that would be the best. 
Maybe there is someone who has a good idea! 

Regards, 
Tobias

1 REPLY 1
lbendlin
Super User
Super User

There's not really a way to do that in Power BI. Maybe in Excel?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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