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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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