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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
weldonator6789
New Member

Roll Forward Latest Value to Future Months

Hey Everyone,

 

I have a headcount table that shows current headcount and planned headcount for the next 12 months. The structure of it looks like this and it's named 'CombinedHC':

 

Planned vs Current.PNG

 

The Fiscal Period column has a relationship to a Month table named dim_Month.

 

We're two months into our fiscal year, so right now there's no values in the Current HC column for periods 202203 through 202212. 

 

What I am looking to do is write a measure to carry the latest Current HC value forward to all future months. So in the above example, carry the value of 26 from period 202202 forward to the months of 202203 through 202212. Any help is appreciated!

2 REPLIES 2
parry2k
Super User
Super User

@weldonator6789 see attached, I just created a sample pbix file to give you an idea on how you can calculate it. Tweak the measure as you see fit.

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k Thank you for your help! I realized I left out a few columns in my screenshot above that I believe are impacting the results of the measure.

 

Each month can have multiple different LOB, Roles, and a Service/Install column. The Carryforward measure is calculating 9 for everything in 202203 and beyond into future months. I believe the issue may be stemming from the TOPN piece of the measure, but I tried tweaking that and couldn't get it to work...Planned vs Current v2.PNG

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.