Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am fairly new to M code and have the need to dynamically forecast employee resourcing per month, based on start date and duration of tasks (See below Table).
For each row, I would like to translate the start date of tasks and duration (Days spent working on it) and dynamically forecast the days per month that would be used for it. For example:
Index 0 starts working on a task from 5/11/2021 for 50 days, therefore in Column 1/11/2021 he would spend x days (days in month remaining from start date and checked against duration) working on it and this value gets input in Index 0 row for Column 1/11/2021 and if the days of the month 1/11/2021 run out and there are still days which are left in duration, then the remaining are assigned to the next month 1/12/2021 and so on and so forth, until the duration is completely forecasted for each month from start date.
I know I can do this in excel using normal excel formuals but I have a need to do this on power query and since I am very new to M code, I am struggling to develop a logic that enables me to perform this task. I would really appreciate some help with this.
Thank you!
Power Query is a lot of things, but dynamic is not one of them. For what you seem to be trying to achieve Excel formulas seem to be a better fit.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
7 | |
6 | |
6 |