Pivot Table - Column is repeating itself with each month - Trend Analysis

hananak

Board Regular
Joined
Feb 10, 2022
Messages
124
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Dear All,

I am trying to do Trend analysis on monthly basis for Revenue/Direct cost etc and at the end I put Annual budget. I use Pivot table to do trend analysis. Currently the problem is when I drag Annual budget into value field, the column repeats it self for each month despite being having the same value, as the Annual budget will remain same the whole year.

Is there a way to have the Annual Budget appear only once at the end and not to repeat with each month?

I have the option to either use regular Pivot table or Power Pivot and Power Query or any combination of these, so solution related to any of these will work for me.

Please see the attached picture to understand the source data structure and the output when I create a pivot table - as you can see the Annual Budget is repeating with each month.

Sorry, on the picture there is a typo - I wanted to write Bottom and instead wrote Button.

Your expert advice would be really appreciated.
 

Attachments

  • 1.png
    1.png
    144.5 KB · Views: 5

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
If you use Power Pivot you can create a column set to only show the budget at the grand total level. You could also use Power Query to create a pivot of the values and then append a new column of the budget totals calculated in another query, or a direct calculation.
 
Upvote 0
If you use Power Pivot you can create a column set to only show the budget at the grand total level. You could also use Power Query to create a pivot of the values and then append a new column of the budget totals calculated in another query, or a direct calculation.
Thanks for your reply. Would you be able to provide a sample working solution based on your suggestions?

I am not really good at Power Pivot or Power query. So really appreciate if you could help?
 
Upvote 0
If you provide a sample file, I probably can.
 
Upvote 0
If you provide a sample file, I probably can.

Please see the mini sheet for my source data, you will have to create a pivot table to see that Annual budget is appearing again and again with each month. Your help will be really appreciated. Thanks.

Trend Analysis V3.xlsx
ABCD
1MonthsAccount CodeAnnual BudgetIn Month Actuals
2202301Revenue(1,766,244.00)(144,687.00)
3202301Direct Costs(2,262,852.00)(191,370.75)
4202301Direct Costs(2,262,852.00)(46,666.67)
5202301Indirect Costs(1,171,968.00)(46,666.67)
6202302Revenue(1,766,244.00)(16,894,117.58)
7202302Direct Costs(2,262,852.00)(191,370.75)
8202302Direct Costs(2,262,852.00)266,893.16
9202302Indirect Costs(1,171,968.00)(16,666.67)
10202303Revenue(1,766,244.00)(7,356.00)
11202303Direct Costs(2,262,852.00)(16,666.67)
12202303Direct Costs(2,262,852.00)(11,805.07)
13202303Indirect Costs(1,171,968.00)(7,356.00)
14202304Revenue(1,766,244.00)(19,121.42)
15202304Direct Costs(2,262,852.00)(2,399.23)
16202304Direct Costs(2,262,852.00)(11,805.07)
17202304Indirect Costs(1,171,968.00)(15,208.00)
18202305Revenue(1,766,244.00)(2,172.70)
19202305Direct Costs(2,262,852.00)(2,399.23)
20202305Direct Costs(2,262,852.00)(19,121.42)
21202305Indirect Costs(1,171,968.00)(483,240.81)
22202306Revenue(1,766,244.00)(29,503.23)
23202306Direct Costs(2,262,852.00)(34,327.91)
24202306Direct Costs(2,262,852.00)(483,240.81)
25202306Indirect Costs(1,171,968.00)(116,519.10)
26202307Revenue(1,766,244.00)(34,327.91)
27202307Direct Costs(2,262,852.00)(116,519.10)
28202307Direct Costs(2,262,852.00)(29,503.23)
29202307Indirect Costs(1,171,968.00)(191,921.57)
30202308Revenue(1,766,244.00)(34,327.91)
31202308Direct Costs(2,262,852.00)(8,277.37)
32202308Direct Costs(2,262,852.00)(13,333.34)
33202308Indirect Costs(1,171,968.00)(8,226.67)
34202309Revenue(1,766,244.00)(13,333.34)
35202309Direct Costs(2,262,852.00)(8,226.67)
36202309Direct Costs(2,262,852.00)(12,027.59)
37202309Indirect Costs(1,171,968.00)(18,955.88)
38202310Revenue(1,766,244.00)(18,955.88)
39202310Direct Costs(2,262,852.00)(12,027.59)
40202310Direct Costs(2,262,852.00)(73,471.35)
41202310Indirect Costs(1,171,968.00)(15,253.00)
42202311Revenue(1,766,244.00)(12,575,933.00)
43202311Direct Costs(2,262,852.00)(15,253.00)
44202311Direct Costs(2,262,852.00)(15,253.00)
45202311Indirect Costs(1,171,968.00)1,205.04
46202312Revenue(1,766,244.00)(8,400.00)
47202312Direct Costs(2,262,852.00)(194,752.42)
48202312Direct Costs(2,262,852.00)(92,112.58)
49202312Indirect Costs(1,171,968.00)(194,752.42)
Data
 
Upvote 0
Make that data into a Table.
Use the Data - From Table/Range option.
In the PQ editor, select the Months column and on the Transform tab click Pivot Column:
1739193185541.png


Choose the In Month Actuals column for the values and press OK. You should now have the output table you want that you can then load to a worksheet.
 
Upvote 0
Make that data into a Table.
Use the Data - From Table/Range option.
In the PQ editor, select the Months column and on the Transform tab click Pivot Column:
View attachment 122215

Choose the In Month Actuals column for the values and press OK. You should now have the output table you want that you can then load to a worksheet.

Please see the attached Picture. The problem is PQ create 12 columns for each month and based on this new data structure, I'll have to bring every time when new month's data is available to analyse the trend. Is there any possibility to keep the current structure and when creating Power Pivot not to repeat Annual budget column with each month?

I believe, you suggest something in Power Pivot.

Please see the attached picture.
 

Attachments

  • 2.png
    2.png
    82.8 KB · Views: 2
Upvote 0
I have no idea what you mean. What I suggested results in this:

1739194641910.png

and new months will automatically be added to the end.
 
Upvote 0
I have no idea what you mean. What I suggested results in this:

View attachment 122217
and new months will automatically be added to the end.
The issue is I do not want to create 12 columns using PQ. I want to keep only 1 column called In Month Actuals in the power pivot and in the filter i can choose for how many months I would like to see the trend and only one column at the end for Annual budget, exactly the way you are showing but in power pivot. I use power pivot for analysis as easy to manipluate data.

Currently in power pivot when I drag the In Month Actuals and Annual Budget in the value field and Months into Column field, the Annual budget columms repeats itself. If you kindly look at the another picture and 2nd pivot table,I uploaded. Hopefully that will clarify the confusion.
 
Upvote 0
I have the option to either use regular Pivot table or Power Pivot and Power Query or any combination of these, so solution related to any of these will work for me
Would have been good if you had specified that the output had to be a pivot table rather than suggesting it could be anything.

You will need to create a column set for your pivot and remove any columns that show the budget where you don't want them.
 
Upvote 0

Forum statistics

Threads
1,226,460
Messages
6,191,164
Members
453,643
Latest member
adamb83

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