Walk-Through: Use ‘:Group By’ to Return and Display Data

Learn how and when to use the ‘:group by’ operator with this step-by-step guide.

Abhinav Narain
January 17, 2024 • % minute read
Walk-Through: Use ‘:Group By’ to Return and Display Data

Whether you’re creating an internal dashboard, building a user-facing analytics app, or simply trying to illustrate a point, data visualization can be a powerful tool for conveying information.

With the :group by operator, you can define one or more groupings of data and aggregate that data based on how you want to slice and dice it. For example, you might want to group data by creation date or owner and present that data by sum or average. By using :group by, you’re able to cross-hatch your data easily and dynamically.

Here’s a step-by-step guide to using the :group by operator and the free Chart.js plugin to return and display data in a bar chart.

💡
For more interactive tutorials, visit the academy.
Start building with a free account

Build your app on Bubble's Free plan. No need to upgrade until you're ready to launch your app.

Join building

LATEST STORIES

blog-thumbnail

Meet the Founders of Immerse Cohort 8 Using AI for Good

Learn about the founders behind Immerse’s AI for Good cohort and discover how they’re using technology to create positive change across healthcare, education, and beyond.

Nichole Bestman
September 18, 2025 • 7 minute read
blog-thumbnail

The Best Mobile App Tech Stack: 7 Tools To Know in 2025

What is a mobile app tech stack, and how do you choose the right one? We’ll guide you through what to consider, plus nine tools you should add to your mobile app stack.

Bubble
September 16, 2025 • 15 minute read
blog-thumbnail

The GTM Strategy Guide for Apps

Get your app in front of the right people. We’ll walk you step-by-step through creating a GTM strategy that delivers.

Bubble
September 15, 2025 • 13 minute read
blog-thumbnail

Bubble Tour 2025 in Paris and London — Here's What to Expect

Get the first look at exciting new features, connect with successful founders, and experience live app demos at Bubble Tour 2025 — our biggest international event yet.

Bubble
September 10, 2025 • 4 minute read

How to Design a Relational Database

June 13, 2025 • 6 minute read

How to Build a Wireframe: Top 7 Dos & Don’ts of Building Your App’s Blueprint

March 04, 2025 • 8 minute read

What Is a Database and Why Does Every App Need One?

January 15, 2025 • 6 minute read

The Essential Brand Elements: 15 Assets That Will Help Your Startup Stand Out

November 20, 2024 • 15 minute read

What Is User Acceptance Testing (UAT) and How to Do It Well

October 30, 2024 • 12 minute read

Build the next big thing with Bubble

Start building for free
CoAlias Logo Powered by CoAlias