Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
table1
| year | forecasted_month |
| 2023 | 12 |
| 2023 | 1 |
| 2023 | 2 |
I have a table that looks like this and I want to create a new column called forecasted_year where it adds 1 to year whenever forecasted_month hits 1 again.
My expected outcome would look like this if it works as intended
| forecasted_year |
| 2023 |
| 2024 |
| 2024 |
Is there any way to do this in DAX or Power Query?
Neither DAX nor Power Query have a concept of mutable variables. You need to bring your own index column to make this work.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 15 | |
| 8 | |
| 8 | |
| 8 |