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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Converting YTD value to MTD Value

I have a table that lists the YTD goal for a person to reach. I want to make that value a monthly value. I thought it would be as easy as taking the monthly goal and multiplying by the month number, but PBI does not allow me to reference my 'Month' column from my date table in that fashion. Here is how it looks:

 

1.PNG

So for my measure, it's just simply YTD_Producer_Goal__c / 12 to give a monthly value of $12,500. How I can make a measure that will accumulate the $12,500 monthly? So for month 2, it should be $25,000, month 3 would be 37,500, etc. etc.

 

PS: The Month column comes from my date table. All other columns come from my main table.

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @Anonymous 

a very simplistic approach could be this measure:

Goal Monthly YTD = 
SUMX(
    'Goals'
    , 'Goals'[Goal Monthly] * MAX('Calendar'[Month No])
)

This allows to create something like this:

image.png

Please be aware of the underlying assumption, that there is just one goal per person in my Goals table, the table on the left in the above screenshot.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey @Anonymous 

a very simplistic approach could be this measure:

Goal Monthly YTD = 
SUMX(
    'Goals'
    , 'Goals'[Goal Monthly] * MAX('Calendar'[Month No])
)

This allows to create something like this:

image.png

Please be aware of the underlying assumption, that there is just one goal per person in my Goals table, the table on the left in the above screenshot.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Nathaniel_C
Super User
Super User

Hi @Anonymous ,
Try the function TOTALYTD() and this assumes your two tables have a relationship.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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