# Formatting Tooltip for Stacked 100% Bar Chart

**URL:** <https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867>\
**Category:** Q&A\
**Tags:** charts, feature-request, formatting, quick-sight\
**Created:** [February 25, 2022, 9:01pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867 "2022-02-25T21:01:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheCardlessMoose](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TheCardlessMoose](https://community.amazonquick.com/u/TheCardlessMoose)\
**Post date:** [February 25, 2022, 9:01pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/1 "2022-02-25T21:01:50Z")

</div>

Hello,

I need some help formatting the tooltip for my Stacked 100% Bar chart in Quick Sight. On hover, I want the tooltip to display BOTH the percentage and quantity of the values in that category. The problem I’m facing is that it only shows data as a percentage.

Here is an example of what I’m looking for, using a chart generated in Power BI:

 ![Screen Shot 2022-02-25 at 2.33.36 PM](https://d1wl4jav5dp96l.cloudfront.net/original/1X/be2f8c192e6041eac0831b399425310455a058b2.png)

In this tooltip, I can see both the quantity (18) and percentage (29.51%) of members in the Base Plan who made 3+ reservations.

However, when I try to design the same visual in Quick Sight, it only shows me the percentage and not the quantity. Even when I select “COUNT” as the aggregate for my custom tooltip field, it shows me the value as a percentage.

Can someone help me understand if there is a way to show both the quantity and percentage in the tooltip for this type of visual?

---

<div class="post-metadata">

**Author:** ![lillie](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lillie](https://community.amazonquick.com/u/lillie)\
**Post date:** [February 28, 2022, 6:52pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/2 "2022-02-28T18:52:39Z")

</div>

Have you tried creating a custom tooltip for the visual: [Customizing tooltips in an Amazon QuickSight visual - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/customizing-visual-tooltips.html)

---

<div class="post-metadata">

**Author:** ![TheCardlessMoose](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TheCardlessMoose](https://community.amazonquick.com/u/TheCardlessMoose)\
**Post date:** [March 1, 2022, 3:44pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/3 "2022-03-01T15:44:37Z")

</div>

Yes, I have created a custom tooltip. Apologies for not including a picture, I was limited to only including 1 image. When creating the tooltip I am selecting the “COUNT” aggregation, which I was hoping would simply give me the numeric count of members in that category, but it seems to only show data as a percent.

Here is an image of what I’m seeing:

 ![Screen Shot 2022-03-01 at 9.43.22 AM](https://d1wl4jav5dp96l.cloudfront.net/original/1X/8b4d7796e02dade224cfae5edd258ba230d7a73e.png)

As you can see, I am using the COUNT aggregation, and I have confirmed that the default aggregation on the field here is “Number” and not “Percent”. Yet, the tooltip still displays the number as a percent

---

<div class="post-metadata">

**Author:** ![saunakchandra](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/saunakchandra/32/14837_2.png) [@saunakchandra](https://community.amazonquick.com/u/saunakchandra)\
**Post date:** [March 2, 2022, 12:19am UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/4 "2022-03-02T00:19:01Z")

</div>

The format of the tooltip measure is driven by the format defined for the field in the visualization layer. See this example how the tooltip “Constructor count” format changes with changes in the format of the underlying field- constructorid.  
 ![tooltip-percentage-format](https://d1wl4jav5dp96l.cloudfront.net/original/1X/f4b70bcb9e12bad9d88b1a4c63d869f361eff80b.gif)

---

<div class="post-metadata">

**Author:** ![TheCardlessMoose](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TheCardlessMoose](https://community.amazonquick.com/u/TheCardlessMoose)\
**Post date:** [March 2, 2022, 4:35pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/5 "2022-03-02T16:35:24Z")

</div>

Oddly I am not seeing the same thing:

![tooltip](https://d1wl4jav5dp96l.cloudfront.net/original/1X/b110d2291b55273ec1a3ad277e9d411cd344fd8f.gif)

I am curious if the format could somehow be influenced by the type of chart.

---

<div class="post-metadata">

**Author:** ![saunakchandra](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/saunakchandra/32/14837_2.png) [@saunakchandra](https://community.amazonquick.com/u/saunakchandra)\
**Post date:** [March 2, 2022, 5:58pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/6 "2022-03-02T17:58:21Z")

</div>

The percentage format in the tooltip is the only option for the stacked bar charts.

---

<div class="post-metadata">

**Author:** ![TheCardlessMoose](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@TheCardlessMoose](https://community.amazonquick.com/u/TheCardlessMoose)\
**Post date:** [March 2, 2022, 6:00pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/7 "2022-03-02T18:00:40Z")

</div>

Gotcha. That is a little disappointing as being able to get a sense of the number of records in each category adds a lot of context to the percentage of the whole. This seems like it would be a good feature to add.

I appreciate the clarification!

---

<div class="post-metadata">

**Author:** ![Eldad\_Levi](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Eldad\_Levi](https://community.amazonquick.com/u/Eldad_Levi)\
**Post date:** [February 19, 2023, 4:39pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/8 "2023-02-19T16:39:30Z")

</div>

I have the same problem.  
Has someone has any solution for this issue?

---

<div class="post-metadata">

**Author:** ![bkasen](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/bkasen/32/932_2.png) [@bkasen](https://community.amazonquick.com/u/bkasen)\
**Post date:** [March 29, 2023, 8:17pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/9 "2023-03-29T20:17:30Z")

</div>

We are encountering the same issue, desiring to show the unique count that is represented by the % in the bar section.

@saunakchandra - can this be raised a feature request to enhance the stacked bar chart visual tooltip capabilities? Having the ability to display a non-percentage value in the stacked bar chart would be extremely beneficial.

Thanks,  
Brian

---

<div class="post-metadata">

**Author:** ![saunakchandra](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/saunakchandra/32/14837_2.png) [@saunakchandra](https://community.amazonquick.com/u/saunakchandra)\
**Post date:** [March 30, 2023, 12:53am UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/10 "2023-03-30T00:53:41Z")

</div>

Thank you for raising this as a concern. I have raised the feature request to the product team.

---

<div class="post-metadata">

**Author:** ![Kristin](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/kristin/32/2470_2.png) [@Kristin](https://community.amazonquick.com/u/Kristin)\
**Post date:** [March 30, 2023, 4:20am UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/11 "2023-03-30T04:20:45Z")

</div>

Thank you @saunakchandra! Thanks, all! 🙂

---

<div class="post-metadata">

**Author:** ![Kristin](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/kristin/32/2470_2.png) [@Kristin](https://community.amazonquick.com/u/Kristin)\
**Post date:** [March 31, 2023, 3:14pm UTC](https://community.amazonquick.com/t/formatting-tooltip-for-stacked-100-bar-chart/1867/12 "2023-03-31T15:14:20Z")

</div>

Archived on March 31, 2023, 3:14pm UTC


