# Count vs $ Amount in Pivot Table

**URL:** <https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599>\
**Category:** Q&A\
**Tags:** pivot-table, formatting, Business-Intelligence-Engineer, quick-sight\
**Created:** [July 15, 2024, 4:15pm UTC](https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599 "2024-07-15T16:15:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krushmere](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@krushmere](https://community.amazonquick.com/u/krushmere)\
**Post date:** [July 15, 2024, 4:15pm UTC](https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599/1 "2024-07-15T16:15:32Z")

</div>

We have created a pivot table that includes a control with 2 options to select from: Count (number) and Amount ($). We are trying to add the ‘$’ symbol in the results when Amount is selected without changing the formatting of the Count.

We have not been able to find a solution for this in Quicksight

---

<div class="post-metadata">

**Author:** ![abacon](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/abacon/32/2291_2.png) [@abacon](https://community.amazonquick.com/u/abacon)\
**Post date:** [July 15, 2024, 5:08pm UTC](https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599/2 "2024-07-15T17:08:26Z")

</div>

Hi @krushmere,

Welcome to the community and thanks for posting your question.

I believe you must be using a parameter with a control to dynamically select the displayed field within a calculated field. At this time it isn’t possible to also dynamically change the field formatting within the pivot table as you describe.

However you could consider using [free-form mode](https://docs.aws.amazon.com/quicksight/latest/user/customizing-visuals-in-free-form.html) and using 2 pivot tables layered on top of each other and then using [conditional rules](https://docs.aws.amazon.com/quicksight/latest/user/conditional-rules.html) to switch between the displayed pivot table. One with Amount and the other with the Count.

Hope this helps?

Many Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![krushmere](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@krushmere](https://community.amazonquick.com/u/krushmere)\
**Post date:** [July 15, 2024, 5:12pm UTC](https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599/3 "2024-07-15T17:12:44Z")

</div>

Thank you very much for your quick response!

Would we be able to keep the dynamic control functionality if we layered the pivot tables as you described?

---

<div class="post-metadata">

**Author:** ![abacon](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/abacon/32/2291_2.png) [@abacon](https://community.amazonquick.com/u/abacon)\
**Post date:** [July 18, 2024, 10:00am UTC](https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599/4 "2024-07-18T10:00:49Z")

</div>

Hi @krushmere,

Yes, the control will allow the dashboard user to select between the available visuals, [here’s an example on democentral](https://democentral.learnquicksight.online/#Dashboard-FeatureDemo-Free-form-Layout-Conditional-Rendering) showing this feature in action.

In your case, the layered visuals would be 2 different pivot tables that present either the Count or Amount fields.

Many Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![krushmere](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@krushmere](https://community.amazonquick.com/u/krushmere)\
**Post date:** [July 22, 2024, 1:52pm UTC](https://community.amazonquick.com/t/count-vs-amount-in-pivot-table/32599/5 "2024-07-22T13:52:27Z")

</div>

This worked, thank you!
