# Adding aggregates to pivot table

**URL:** <https://community.amazonquick.com/t/adding-aggregates-to-pivot-table/2886>\
**Category:** Q&A\
**Tags:** analysis, feature-request, formatting, quick-sight\
**Created:** [April 7, 2022, 8:58pm UTC](https://community.amazonquick.com/t/adding-aggregates-to-pivot-table/2886 "2022-04-07T20:58:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbrady](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@rbrady](https://community.amazonquick.com/u/rbrady)\
**Post date:** [April 7, 2022, 8:58pm UTC](https://community.amazonquick.com/t/adding-aggregates-to-pivot-table/2886/1 "2022-04-07T20:58:45Z")

</div>

Hello,

I am recreating an excel pivot table in quicksight. It shows me a count on each day of the month. It also shows me the total for the month, total for that month in the previous year. and the percentage of this year/last year. Here is a view of that in excel.  
 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/f/f1729f9f3782ba181f72fa41d5eb58958a50e046.jpeg)  
The trouble I’m having is that although I have successfully created a calculated field to give me last years totals. I can’t find a way to show it in my pivot table.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/2/2b3c2157f08a427ac1b6b2368c2483bbdb970a85.png)  
I had the option to include total for in the visual settings, which works great for the current year being displayed. But I can’t seem to add on my last year’s total to the end without it trying to split day by day. Any suggestions appreciated. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://community.amazonquick.com/u/tao)\
**Post date:** [April 10, 2022, 10:12pm UTC](https://community.amazonquick.com/t/adding-aggregates-to-pivot-table/2886/2 "2022-04-10T22:12:13Z")

</div>

I understand what you’re looking for here but wish I could help. With the daily grain in the Column I wonder if it’s even possible to add the calculated measure (for last year’s total) as a single total (for the month) vs. at the daily level. I’m curious to learn about a way to do so in Quick Sight.

In the meantime I would recommend displaying your totals (current year, prior year, etc.) in a separate visual similar to the example in the picture below.

 ![YOY Totals](https://d1wl4jav5dp96l.cloudfront.net/original/2X/d/dca115fda16a6f1a2728de88557842ab0a92ed4f.jpeg)
