> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.pdfgeneratorapi.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use the "Group by" option with the Table or Container component?

The "Group by" option for the Table and Container components allows you to easily group your data sets by a specific data field. This option can be found in the Advanced Settings.

${frame}[Grouping with Table and Container Components](https://www.loom.com/embed/89769782fa8447a9a986ebfda46540b9)

|| When "Group by" is used, you can get the count of items in the current group using expression with grouped_rows data field: `{% count({grouped_rows}) %}`
---
### Related articles you may find helpful

* [Container Component](https://support.pdfgeneratorapi.com/en/article/container-component-5fi9zb/)
* [Table Component](https://support.pdfgeneratorapi.com/en/article/table-component-1fuaafc/)
* [What is Expression Language?](https://support.pdfgeneratorapi.com/en/article/what-is-expression-language-1teiau6/)
