# Grouping poll results by user custom field

**URL:** <https://meta.discourse.org/t/grouping-poll-results-by-user-custom-field/284710>\
**Category:** Site Management\
**Tags:** polls, how-to, user-custom-fields, users\
**Created:** [November 7, 2023, 1:03pm UTC](https://meta.discourse.org/t/grouping-poll-results-by-user-custom-field/284710 "2023-11-07T13:03:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)\
**Post date:** [November 7, 2023, 1:03pm UTC](https://meta.discourse.org/t/grouping-poll-results-by-user-custom-field/284710/1 "2023-11-07T13:03:05Z")

</div>

> 🔖 This guide explains how to break down poll results into different groups using user custom fields. This feature allows you to see how different segments of your community are voting.
> 
> 🙋 Required user level: Administrator

This guide covers:

- Creating a user custom field
- Configuring the `poll groupable user fields` setting
- Viewing grouped poll results

## Creating a user custom field

1. Navigate to `/admin/config/user-fields`
2. Create a new user custom field

For detailed instructions on creating user custom fields, refer to [the guide on creating and configuring custom user fields](https://meta.discourse.org/t/create-and-configure-custom-user-fields/113192).

 ![User custom fields page](https://global.discourse-cdn.com/meta/original/4X/6/b/0/6b0665a2f12d77ae22a77582cafff56f912acc90.png)

## Configuring the poll groupable user fields setting

1. Go to your site settings

2. Find the `poll groupable user fields` setting

3. Add the name of your user custom field

## Viewing grouped poll results

Once users have filled out the custom field (either at signup or through their profile page), you can view grouped poll results:

1. Create a poll (see [Create a poll that others can vote on](https://meta.discourse.org/t/create-a-poll-that-others-can-vote-on/77548) for instructions)
2. After users have voted, click the gear ⚙ dropdown on the poll, then select “Breakdown”  
 ![poll breakdown button](https://global.discourse-cdn.com/meta/original/4X/b/b/2/bb2ec897d33f2a4c60f64f4ad6d7bc23b6ed4869.png)
3. View the breakdown of results by group  
 ![poll results breakdown](https://global.discourse-cdn.com/meta/original/4X/b/d/9/bd9c2a599ae107504b086bd15e61341c0e40c59b.png)

## Additional features

- If you’ve set up multiple user custom fields for grouping, use the dropdown at the top to switch between them
- Toggle between percentage and count views using the tabs provided

## FAQs

**Q: Can I use multiple user custom fields for poll grouping?**  
A: Yes, you can add multiple fields to the `poll groupable user fields` setting.

**Q: Are users required to fill out these custom fields?**  
A: That depends on how you’ve configured the user custom field. You can make fields required or optional.

## Additional resources

- [Creating and configuring custom user fields](https://meta.discourse.org/t/create-and-configure-custom-user-fields/113192)
- [Creating and managing polls](https://meta.discourse.org/t/create-a-poll-that-others-can-vote-on/77548)

> Last edited by @hugh 2024-07-09T11:25:41Z
> 
> Last checked by @hugh 2024-07-09T11:25:48Z
> 
> > **Check document**
> >
> > Perform check on document:

---

_[View the full topic](https://meta.discourse.org/t/grouping-poll-results-by-user-custom-field/284710)._
