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
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.