The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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':
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!
@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...
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
76 | |
65 | |
52 | |
51 |
User | Count |
---|---|
128 | |
117 | |
78 | |
65 | |
63 |