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 • A quick read
A screenshot of the Bubble editor showing how to use the :group by operator

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

Bubble and Base44 logos on connected purple shapes, showing Bubble vs Base44 comparison on dark gradient background

Bubble Vs. Base44 Comparison: Which AI App Builder Is Right For You?

Find the right AI app builder for your project with this comparison of Bubble vs. Base44 — covering development workflow, design control, backend and database visibility, mobile publishing, integrations, security, and pricing.

Bubble
November 12, 2026 • 20 minute read
BiteFind live in the iOS and Android app stores with a banner that says Live

Native Mobile Is Out of Beta, Faster, and More Reliable

Bubble for native mobile is now available to everyone. See what’s new, what it means for your app’s reliability, and how to bring an existing Bubble web app to mobile.

Bubble
November 12, 2026 • 4 minute read
Replit vs. Bolt vs. Bubble: 2026 Review of the top AI App Builders

Replit vs. Bolt vs. Bubble: 2026 Review of the top AI App Builders

Find the right AI-powered app builder for your next project based on your needs, skill level, and more. We compared Replit, Bolt, and Bubble across 12 categories to help you choose the best option.

Bubble
November 12, 2026 • 25 minute read
An abstract visual of a mobile phone screen mockup showing a settings icon and a rectangle next to it with a checklist and four lines marked as done, on a blue gradient background.

App Maintenance: A 2026 Guide to Keeping Your App Running

Learn what app maintenance includes, how to ship updates without breaking your app, and how to set up a weekly, monthly, and quarterly maintenance routine.

Bubble
November 09, 2026 • 10 minute read

App Maintenance: A 2026 Guide to Keeping Your App Running

November 09, 2026 • 10 minute read

How Much Does an App Builder Cost? A 2026 Pricing Guide

November 06, 2026 • 12 minute read

How to Build a Client Portal: A Complete Guide for 2026

November 06, 2026 • 11 minute read

8 Best Lovable Alternatives for AI App and Web Development

November 05, 2026 • 16 minute read

How to Build a Multi-Tenant SaaS App With No Code

November 02, 2026 • 10 minute read

Build the next big thing with Bubble

Start building for free