# Using Pie Charts to count amount of defined Strings

**URL:** <https://forum.bubble.io/t/using-pie-charts-to-count-amount-of-defined-strings/219983>\
**Category:** Plugins\
**Created:** [August 15, 2022, 7:09am UTC](https://forum.bubble.io/t/using-pie-charts-to-count-amount-of-defined-strings/219983 "2022-08-15T07:09:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian.lipkovits](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adrian.lipkovits/32/140733_2.png) [@adrian.lipkovits](https://forum.bubble.io/u/adrian.lipkovits)\
**Post date:** [August 15, 2022, 7:09am UTC](https://forum.bubble.io/t/using-pie-charts-to-count-amount-of-defined-strings/219983/1 "2022-08-15T07:09:36Z")

</div>

Hi there

I am currently trying to setup a pie chart which should count the amount of a certain String in a given data set. My value expression uses the Group by function with exact match on the String and a :count operator. Still the chart displays each String differently and does not count the same String together. Therefore every entry just has a count of one instead of being grouped together. Has anyone any experience? Is this even solvable with the Bubble Pie Chart Plugin?

Thanks and kind regards  
Adrian

---

<div class="post-metadata">

**Author:** ![bubble.trouble](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@bubble.trouble](https://forum.bubble.io/u/bubble.trouble)\
**Post date:** [August 15, 2022, 2:20pm UTC](https://forum.bubble.io/t/using-pie-charts-to-count-amount-of-defined-strings/219983/2 "2022-08-15T14:20:11Z")

</div>

Make sure to put the count inside of the aggregation, then use format as text to comma separate the values shown below:

 ![Screenshot 2022-08-15 at 10.18.37 AM](https://us1.discourse-cdn.com/bubble/original/3X/6/7/67920067f998de3545fe7c3e87e1fb847f0fb0f5.png)

 ![Screenshot 2022-08-15 at 10.18.57 AM](https://us1.discourse-cdn.com/bubble/original/3X/1/e/1ec00d1936b31276d1d2b0ee43cbdb562ce9cf09.png)
