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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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