Now and then, Looker Studio sneaks in a new feature before updating the official release notes. The same happened yesterday when a new feature suddenly popped up when one tried to create a new calculated field: "Add bin."
![](https://uploads-eu-west-1.insided.com/supermetrics-en/attachment/0419a4f5-ac6f-4363-af43-7a7132d6805c.png)
If you click this new option in the drop-down menu, you'll see a new interface for easily creating bins.
What are bins?
Bins in data visualization are like containers that group similar data points, helping to show how data is distributed in a chart, such as a histogram.
To create a real-life example, I asked ChatGPT to create a small dataset containing 150 shopping carts with the number of items each cart includes.
To visualize such a dataset, you would use a histogram. But before, you would need to "categorize" these numbers. We'd have used CASE statements within a calculated field for this task. Now, we can use a graphical interface.
There are two options to create the bins: Equal-sized or custom-sized.
![](https://uploads-eu-west-1.insided.com/supermetrics-en/attachment/56364a77-79b5-49f3-9ee3-42157d6f2779.png)
Once you have created your bins, drop the new calculated field into a bar chart to see the result of the previous operation.
The first chart shows equal-sized bins. How many carts contain 0-5 items, how many carts contain 6-10 items, etc. The second chart uses custom-sized bins: 0-2, 3-10, and 11-100.
![](https://uploads-eu-west-1.insided.com/supermetrics-en/attachment/bd3b3b99-5eb5-4835-aadd-9417b4fb01d9.png)
And as you can see, most shopping carts contain more than 2 items in our dataset.
What can you build with this new functionality?
Â