Calculating Variance Between Two Tables in a Data Model

bigburge10

New Member
Joined
May 13, 2015
Messages
10
Hello,

I have two tables in Excel 2013: Actual & Forecast. Both tables have the following similar columns: Period, Account, Amount. I've included them in a Pivot Table Data Model and would like to calculate a variance between Actual[Amount] and Forecast[Amount]. I'm unable to utilize the Calculated Field/ Item since those aren't available when using a Data Model.

Both tables are related to 2 other tables: Period & Account--both of these tables provide additional information for these fields (Account Hierarchy, Period Intelligence, etc).

How can I perform such a calculation? It seems like such a simple thing, yet I can't seem to figure it out!

Thanks in advance, and please let me know if any additional information is needed.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Generally, you are just going to write 3 calculated fields:

Total Actual := SUM(Actual[Amount])
Total Forecast := SUM(Forecast[Amount])
Variance := [Actual] - [Forecast]
 
Upvote 0
Thanks for replying. Can you provide a little color around this? Where should I include these calculated fields? I assume you aren't referring to the actual Calculated Field option under the Fields, Items, and Sets area.

Are these getting entered to a new table?
 
Upvote 0
I'm not 100% sure of that. I do not have the Power Pivot menu on my bar. However, I'm using Excel 2013, and I believe it's up-to-date. I've tried to enable this add-in, however it doesn't appear in the add-in screen. So, I think (and I've read this) that Power Pivot is included in Excel 2013 by default. Do you know if that is true?
 
Upvote 0
As shocking as this may sound... the answer is actually "complicated". While Power Pivot used to be a free addin, in 2013 it is only available in certain SKUs of Office, which more or less boils down to Professional Plus (which is only available via Office365 or volume license) and stand-alone Excel... cuz Microsoft is literally insane.

So, if you are using normal excel, outside the Power Pivot world... I recommend hopping over to the "main" forum, where they will be way more qualified to answer your question.
 
Upvote 0
Thanks for your help. I continued to search on this topic online and did see plenty of mentions of this. I'm pretty sure my company has a volume license, but maybe we purchased a cheaper version that still doesn't have this feature. Go figure!
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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