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
I am trying to create a measure to display the following equation: (Annual Target / Months) * (Current Month Number). I have created the following equation and understand that it works correctly, up until the IF function. I have highlighted this in bold. I do not understand my mistake.
Live Target = (([TARGET 2024]) / MAX( MonthNumber[Month Number])) * (MONTH(Today())
(MONTH(Today()) IF(_month > 3, _month-3, _month+9)))
Key here is that I am trying to vary the current month number so that April is regarded as the 1st month of the year.
Solved! Go to Solution.
I would do something like
LiveTarget =
var curMonth = if(month(today())>3, month(today())-3, month(today())+9)
var result = ([TARGET 2024]) / MAX( MonthNumber[Month Number]) * curMonth
return result
If this post was helpful, please kudos or accept the answer as a solution.
~ Anthony Genovese
Need more PBI help? PM me for affordable, dedicated training or consultant recomendations!
I would do something like
LiveTarget =
var curMonth = if(month(today())>3, month(today())-3, month(today())+9)
var result = ([TARGET 2024]) / MAX( MonthNumber[Month Number]) * curMonth
return result
If this post was helpful, please kudos or accept the answer as a solution.
~ Anthony Genovese
Need more PBI help? PM me for affordable, dedicated training or consultant recomendations!
Thank you Anthony, this was the solution. I'm very grateful and you've also taught me a new function. Have a great day.
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 |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |