Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Sol_idSnake
New Member

Multiplying Measures by Varied Month Number

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. 

1 ACCEPTED SOLUTION
AnthonyGenovese
Resolver III
Resolver III

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!

View solution in original post

2 REPLIES 2
AnthonyGenovese
Resolver III
Resolver III

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. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.