# Percent for Pivot Table

**URL:** <https://community.amazonquick.com/t/percent-for-pivot-table/39384>\
**Category:** Q&A\
**Tags:** pivot-table, calculations, Business-Intelligence-Engineer, quick-sight\
**Created:** [December 4, 2024, 7:25pm UTC](https://community.amazonquick.com/t/percent-for-pivot-table/39384 "2024-12-04T19:25:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathewsmelo](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathewsmelo](https://community.amazonquick.com/u/mathewsmelo)\
**Post date:** [December 4, 2024, 7:25pm UTC](https://community.amazonquick.com/t/percent-for-pivot-table/39384/1 "2024-12-04T19:25:51Z")

</div>

![{55582CD5-4F63-4EA8-90B7-A0CDD2A9E31C}](https://d1wl4jav5dp96l.cloudfront.net/original/3X/3/f/3f90a515d8036eee54dbb1c3468d4e2f7c2df2f2.png)

G1 is the right percent of the total, but i want that A-BA inside the G1 be the percent of how it represents of G1, not the percent of the total. Like 13% would be something like 60% of the 22%. How do i do it? I tried to create some calculated field but didnt work.

---

<div class="post-metadata">

**Author:** ![Biswajit\_1993](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/biswajit_1993/32/20472_2.png) [@Biswajit\_1993](https://community.amazonquick.com/u/Biswajit_1993)\
**Post date:** [December 5, 2024, 7:27am UTC](https://community.amazonquick.com/t/percent-for-pivot-table/39384/2 "2024-12-05T07:27:11Z")

</div>

Hi @mathewsmelo ,

Can you check with the below calculation.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/5/7/5770f44dfd781dfb07ce69f627aff2e72b6b42ec.png)

For better understanding you can go through the below link.

> **[percentOfTotal - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/percentOfTotal-function.html)**
>
> The percentOfTotal function calculates the percentage a measure contributes to the total, based on the dimensions specified.

Thanks & Regards  
Biswajit Dash

---

<div class="post-metadata">

**Author:** ![mathewsmelo](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathewsmelo](https://community.amazonquick.com/u/mathewsmelo)\
**Post date:** [December 9, 2024, 2:11pm UTC](https://community.amazonquick.com/t/percent-for-pivot-table/39384/3 "2024-12-09T14:11:04Z")

</div>

Hello, i tried this, but did not work, the percent still not going to 100 in both group and sub group.

Thanks,

---

<div class="post-metadata">

**Author:** ![ArunSanthosh](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/arunsanthosh/32/3292_2.png) [@ArunSanthosh](https://community.amazonquick.com/u/ArunSanthosh)\
**Post date:** [December 10, 2024, 9:34pm UTC](https://community.amazonquick.com/t/percent-for-pivot-table/39384/4 "2024-12-10T21:34:09Z")

</div>

Hi Mathews @mathewsmelo ,

You can use the table calculation feature for this. You can’t get the combination in same column but can do two percent of total table calcs to get what you are looking for. See screen shot below.

The first table calc has the _calculate as_ option set to _Table down_ and second has it set to _Group down_. Hope this helps.

 ![2024-12-10_15-29-25](https://d1wl4jav5dp96l.cloudfront.net/original/3X/7/f/7f93ecd955ac570c25a15181889d820d210f374c.png)

I’m marking this as solution here. Please let us know if you have further questions.

Regards,  
Arun Santhosh  
Pr Quick Sight SA

---

<div class="post-metadata">

**Author:** ![Biswajit\_1993](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/biswajit_1993/32/20472_2.png) [@Biswajit\_1993](https://community.amazonquick.com/u/Biswajit_1993)\
**Post date:** [December 11, 2024, 10:46am UTC](https://community.amazonquick.com/t/percent-for-pivot-table/39384/5 "2024-12-11T10:46:54Z")

</div>

Hi @mathewsmelo ,

Please try the solution provided by @ArunSanthosh.

Thanks & Regards  
Biswajit Dash
