• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Average in Grand Total of Pivot table

trprasad78

Member
Hi

I need to help to get Row Average from Row Grand Total.

I have attached Sample file in "Sheet 2" end of Pivotable Column U is expected out put.
It has to come inside the pivot , if use Calculated fields its showing all the columns.

But I need Average after Grand total along with given data on sheet 2.

Please do the needful.
Thank you in advance.

Regards,
Prasad.
 

Attachments

  • sample.xlsx
    15.7 KB · Views: 2
Did You even check PivotTable Fields?
Did You notice that there are hidden some columns?
That would be more useful if those Totals could be left side!
 
You can do it by using the data model (assuming you have a version of Excel with it available) and then creating a column set.
 
Make the source data into a table, then load it into the data model using the Power Pivot tab:
1737052608165.png

then create a pivot table:
1737052661944.png

Now create two measures (right click the table name in the pivot table field list, then choose Add measure. The first one is TotalCount:
1737052729385.png
Then AverageCount:

1737052774180.png


Set up the pivot table as you want it and add both measures to the values area. Now click the Fields, Items and Sets button on the PivotTable Analyze tab and create a column set. You then just delete the columns you don't want to stay in the pivot table - i.e. all the Average ones apart from the total:
1737052980067.png

That will create a pivot table that only shows the average column at the grand total level.

Note though that this is specific to the dates you have at the time. If you need it to update as you add new dates to the data, you will need to edit the MDX for the set, which is a little more complicated.
 
Make the source data into a table, then load it into the data model using the Power Pivot tab:
View attachment 89602

then create a pivot table:
View attachment 89603

Now create two measures (right click the table name in the pivot table field list, then choose Add measure. The first one is TotalCount:
View attachment 89604
Then AverageCount:

View attachment 89605


Set up the pivot table as you want it and add both measures to the values area. Now click the Fields, Items and Sets button on the PivotTable Analyze tab and create a column set. You then just delete the columns you don't want to stay in the pivot table - i.e. all the Average ones apart from the total:
View attachment 89606

That will create a pivot table that only shows the average column at the grand total level.

Note though that this is specific to the dates you have at the time. If you need it to update as you add new dates to the data, you will need to edit the MDX for the set, which is a little more complicated.
thank you so much for your time and explanation , let me check and get back
 
Back
Top