Creating a total budget column.

jeancake

Board Regular
Joined
Nov 3, 2008
Messages
59
I have a power pivot table with two fact tables 2024 actual and 2024 budget. I have three dimension tables product, region and a calendar table.

The pivot table has the following:

Rows
Region
Product

Measures Sales
Budget
Variance

YTD Sales
YTD Budget
YTD variance
Slicer the are tofor month:

I ould like to add a column showing the total annual budget for the budget and region to show how close each product is YTD to the total annual budget ,but I'm struggling to rite the formula

.
Screenshot 2024-12-30 234900.jpg
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
To know how to solve this problem, you need to first think deeply about how a pivot table works. Rows, columns and slicers all put filters on your dimension tables (at least, these things SHOULD come from your dimension tables). So the reason Budg $ is showing the Dec 24 number is because there is a filter on Dec 24 coming from your slicer. If you want another measure to show the full year budget, you will need to remove this filter from Dec 24 and reapply a filter for the year 2024. How you do this will depend on the calendar table you have. Regardless, you will need to use CALCULATE. CALCULATE is the function that allows you to change the natural filtering behaviour of the pivot/model.

You should make sure your calendar table has a year column as well as the mmm-yyyy column. I would then first capture what year is being filtered, then remove the mmm-yyyy filter, then re-apply the year filter.

Something like this (it will depend on your calendar)
Full year =
VAR SelectedYear = max(calendar[year])
RETURN CALCULATE([Budg ($) Measure], All(Calendar),Calendar[Year]=SelectedYear)
 
Upvote 0

Forum statistics

Threads
1,225,322
Messages
6,184,274
Members
453,224
Latest member
Prasanna arachchi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top