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
aletho
Helper I
Helper I

dab measure - previous months above or below budget

Hi

 

I need help with a dax measure. I want to calculate if I'm above or below my budget so far this year, so turnover-budget. 

 

I have "budget - FBP" as my budget and "Oms. FBP" as my turnover. I want to set it up so it calculates it from the beginning of the year to and including the last month. So from Jan2018 to Aug2018, next month from Jan2018 to Sep2018 and so on.

Is this possible? 🙂   

 

My data looks like this:

 

Budget measure.PNG

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi aletho,

 

"I want to set it up so it calculates it from the beginning of the year to and including the last month. So from Jan2018 to Aug2018, next month from Jan2018 to Sep2018 and so on."

 

<--- Could you clarify more details about your logic?

 

Regards,

Jimmy Tao

Hey Jimmy and thanks for writing

 

Let me try to explain my purpose. I am trying to create a calculation showing how if I am above or below my sales target so far this year on a monthly budget bases. This is for me (budget-turnover) from the month passed. I cannot include a month that has not passed yet, because it has not reached is full turnover. 

 

So something like from the start of the year to this month-1? I have included an excel spreadsheet illustrating the idea and problem.  

 

https://drive.google.com/file/d/1_onjFHRmuGvfzUdXox1wDlsJgUKXrlzS/view?usp=sharing

 

Hope you can help me in the right way

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.