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, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
ED864
New Member

Converting annual budget to monthly budget based on previous year's sales data.

Hello,

 

I have a list of sales budgets (targets) which are written by brand per year. I would like to break these down into monthly budgets based on the previous year's sales data (not jsut divided by 12) to account for seasonal trends.

 

This seems like it should be straightforward but I've been going round in cicrcles for ages and haven't gotten anywhere.

 

Here is some dummy data:

ED864_0-1729765226041.png

The columns in black already exist in my model. The columns in red are the steps I would like to take.

 

Step 1: Calculate the total sales for the previous year based on brand.

Step 2: Calculate the total sales for the previous year based on brand and split by month.

Step 3: Divide the Monthly Sales PY by the Total Sales PY to get the percentage split of sales for each month per brand.

Step 4: Multiply the Total Sales Budget by the % Total Sales PY to get the Monthly Budget for the current year by brand. 

 

I'm not sure if this can all be done in one Measure or maybe just adding calculated columns to my table would be better.

Here is my model:

ED864_1-1729765476127.png

 

Thanks in advance for any help and advice.

1 ACCEPTED SOLUTION
isjoycewang
Super User
Super User

Hi @ED864 ,

 

 

Attached the demo file.

You can create several columns or you can also write them all in one single column.

Monthly Bugdet = 
VAR _brand = [Brand]
VAR _month = [Month]
VAR _total_sales_PY = CALCULATE(SUM(Sales[Line Revenue]), FILTER(ALL(Sales), Sales[Brand] = _brand))
VAR _monthly_sales_PY = CALCULATE(SUM(Sales[Line Revenue]), FILTER(ALL(Sales), Sales[Brand] = _brand && Sales[Month] = _month))
RETURN
[Annual Sales Budget]* (DIVIDE( _monthly_sales_PY, _total_sales_PY))
// bugdet * monthly_sale%_PY

 

isjoycewang_0-1729840525336.png

 

Feel free to let me know if any questions. Thanks.

 

Best Regards,

Joyce

View solution in original post

4 REPLIES 4
isjoycewang
Super User
Super User

Hi @ED864 ,

 

 

Attached the demo file.

You can create several columns or you can also write them all in one single column.

Monthly Bugdet = 
VAR _brand = [Brand]
VAR _month = [Month]
VAR _total_sales_PY = CALCULATE(SUM(Sales[Line Revenue]), FILTER(ALL(Sales), Sales[Brand] = _brand))
VAR _monthly_sales_PY = CALCULATE(SUM(Sales[Line Revenue]), FILTER(ALL(Sales), Sales[Brand] = _brand && Sales[Month] = _month))
RETURN
[Annual Sales Budget]* (DIVIDE( _monthly_sales_PY, _total_sales_PY))
// bugdet * monthly_sale%_PY

 

isjoycewang_0-1729840525336.png

 

Feel free to let me know if any questions. Thanks.

 

Best Regards,

Joyce

That works great! Nice and simple too! Thanks very much.

sanalytics
Solution Sage
Solution Sage

@ED864 

How do you calcuate previous year's total sales.
I dont see any 2023 data in your shared screenshot.
It will be better if you share a dummay data with your pbix file so that we can try from our end.

 

Regards

sanalytics

@sanalytics 

Please see here a dropbox link with some dummy data:
https://www.dropbox.com/scl/fi/olb4a2l4pcttcvyzb76ec/Dummy-Data.pbix?rlkey=2c5vfm9s096y43kkhf877uk58... 

The previous year's sales data will come from the sales table which includes individual transactions.

 

Let me know if you need anything else!

Thanks

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! 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.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors