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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Add missing monthly data based on previous month's data

Hello folks,

 

I have a table called “Status Report” that shows a time-stamp of each time the status of a project was changed.

 

Example:

am1990_0-1593705637812.png

 

What I need to show is a monthly status report – that is – what was the “Current status” of each project every month.

The challenge is that the status change date only gets populated when the status actually changes.

 

For example, Project A was Red in Jan 2020, and then it was changed to Yellow in Mar 2020. But that means it was still Red in Feb 2020, but that data is not populated. And then from Yellow, it went to Green in May 2020, which means it was Yellow in April 2020 as well, and is now Green up until July 2020. Final product can be something like this (the month when the status was changed is marked in Red, the rest are missing months where the status is based on the previous month's status):

am1990_1-1593705671099.png


I need a way to calculate that missing data so that I can show what the status was each month (not only when the status was changed). How can this be approached?

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could do it with Power Query.

Here is my sample file. The "Custom" column is saved as current date.

2-1.PNG

Then get the date list from the start date to current date with List.Dates().

2-2.PNG

Add this list to original table and use "filled down" feature to get correct color.

2-3.PNG

Here is my test file for your reference. Query 2 is the final result.

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could do it with Power Query.

Here is my sample file. The "Custom" column is saved as current date.

2-1.PNG

Then get the date list from the start date to current date with List.Dates().

2-2.PNG

Add this list to original table and use "filled down" feature to get correct color.

2-3.PNG

Here is my test file for your reference. Query 2 is the final result.

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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