Power Pivot category subtotal % variance not calculating correctly.

cjkelly03

New Member
Joined
Nov 7, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am trying to build a pivot table using the power pivot and the data model built from two different files.



With this pivot table, I am trying to compare Quarterly 2022 revenue vs. the same period in the prior year. In the data model, I added columns for Q1'22 $ variance, Q1'22 % variance, etc. Formulas were: $ var = [Q1'22] - [Q1'21], and % var = $ var/[Q1'21]. The data model has several rows which are customers and the customers are part of categories.



I created a pivot table from the data model as follows.

1. Rows - customer name

2. Columns - Quarterly revenue for '21 and '22; yoy $ variance, yoy % variance.

Image

I've hidden several rows due to the size of the table.



I noticed two things:

1. I have 5 customers that have multiple sales reps even though they are in the same "category". For each of these customers, the pivot table has the incorrect % variance for Q2. In the above example, Core-Mark has -32.6% but it should be -23.8% based on the relevant columns shown. Is the calculation error due to not having the correct formula in the data model to calculate the $ and % variances or would it be due to these 5 large customers having more than 1 sales rep?



2. The category "Conven" total the % variance is completely wrong. It totaled the correctly calculated variances for each individual customer. How can that be corrected?



I appreciate any insight that could be provided.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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