What is Binning in Power BI?

Cody Schneider7 min read

Trying to make sense of a column full of numbers in Power BI, like customer ages or sales amounts, can feel impossible. When every value is slightly different, spotting trends in a standard chart is like trying to find a needle in a haystack. This is where binning comes in - a simple but powerful technique to group continuous data into manageable ranges. In this tutorial, we'll walk through exactly what binning is, why it's useful, and how to do it step-by-step in Power BI.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Group Data into Bins?

Imagine you have sales data for thousands of individual transactions, with prices ranging from $1.05 to $987.65. If you plot every single price point on a chart, you'll get a chaotic visual that tells you almost nothing. It’s just too much detail, or "noise."

Binning solves this by organizing that noisy data into logical containers, or "bins." Instead of looking at thousands of individual prices, you can group them into categories like:

  • $0 - $99
  • $100 - $199
  • $200 - $299
  • ...and so on.

Suddenly, you have a clean, clear distribution. You can instantly see which price ranges are most popular, where the bulk of your sales come from, or if you have any outliers. In short, binning simplifies complexity and reveals the underlying patterns in your data, making it far easier to analyze and visualize.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

How to Create Bins in Power BI (Step-by-Step)

Power BI offers a straightforward, built-in feature for creating equal-sized bins. This is the perfect method for quick analysis, like building a histogram to see the distribution of ages, product weights, or delivery times.

Let's use a sample dataset of customer information with an 'Age' column to demonstrate.

Step 1: Find Your Numeric Field

In Power BI Desktop, look at the Fields pane on the right side of the screen. Find the numeric column you want to group. In our case, it's the 'Age' column. This process only works for columns with a numeric data type.

Step 2: Open the Grouping Menu

Right-click on the data field you want to bin (e.g., 'Age'). A context menu will pop up. From this menu, select New Group.

Step 3: Configure Your Bins

A dialog box labeled "Groups" will appear. This is where you'll define how Power BI creates your bins.

  • Group Type: Power BI is smart enough to see you're working with a numeric field, so it will automatically suggest "Bin" as the group type.
  • Bin type / Bin size: This is the most important setting. Here, you'll choose the "Size of bins" you want to define the size for each group. For instance, if you're analyzing ages and you set the "Bin size" to 10, Power BI will create groups for ages 0-9, 10-19, 20-29, and so on.
  • Min and Max: Power BI will automatically detect the minimum and maximum values in your column, but you can override these if you want to set specific boundaries for your analysis.

For our example, we'll set the Bin size to 10. Once you're happy with the settings, click OK.

Step 4: A New Field Appears

Power BI doesn't change your original column. Instead, it creates a brand new field in the Fields pane named [Your Field Name] (bins). In our case, a new field called Age (bins) has been added.

Step 5: Use Your Bins in a Visualization

Now for the fun part! You can drag this new binned field into any visualization, just like you would with any other column.

  1. Select a Column chart from the Visualizations pane.
  2. Drag your new Age (bins) field to the X-axis.
  3. To see how many customers fall into each age group, drag a field like 'Customer ID' to the Y-axis. By default, Power BI will summarize it as a count.

You've just created a histogram! Now you have a clean, easy-to-read chart showing the distribution of your customers by age, giving you instant insight into your customer demographics.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Going Beyond the Basics: Creating Custom Bins with DAX

The built-in grouping feature is excellent for creating bins of a uniform size, but what if you need more flexibility? For example, you might want to create age groups that align with marketing segments like "Teen" (13-19), "Young Adult" (20-35), and "Adult" (36-60). Or, you may want to group sales transactions into categories like "Small," "Medium," and "Large" based on unequal monetary values.

For this level of customization, you'll need to use DAX (Data Analysis Expressions) to create a calculated column.

Step 1: Create a New Calculated Column

First, make sure you're in the 'Data' view or 'Report' view. Then, navigate to the Modeling tab on the ribbon at the top of the window and click New Column.

Step 2: Write Your DAX Formula

The formula bar will appear, ready for you to enter your DAX expression. The SWITCH(TRUE(), ...) function is a great way to create custom bins because it’s clean and easy to read. Let’s say we want to group sales amounts from a 'Sales' table into three tiers:

Sales Tier = 
SWITCH(
    TRUE(),
    'Sales'[Amount] <= 100, "Small (Under $100)",
    'Sales'[Amount] > 100 && 'Sales'[Amount] <= 500, "Medium ($101-$500)",
    'Sales'[Amount] > 500 && 'Sales'[Amount] <= 1000, "Large ($501-$1000)",
    "Enterprise ($1000+)"
)

Here's how this formula works: It checks each condition in order. It looks at the [Amount] column in the Sales table for each row. If the amount is less than or equal to 100, it labels that row "Small." If not, it checks the next condition, and so on, until a condition is met.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 3: Use Your Custom Bins in a Report

Once you press Enter, a new column named "Sales Tier" will be added to your table. You can now use this column in any visual, slicer, or table. For example, you could create a pie chart using "Sales Tier" as the Legend and "Count of Orders" as the Values to instantly see which transaction size makes up the biggest portion of your business.

Tips for Effective Binning

Binning is both a science and an art. Here are a few tips to help you get the most out of it:

  • Choose the Right Bin Size. If your bins are too wide (e.g., grouping ages by a size of 50), you'll lose all the details. If they're too narrow (e.g., a size of 2), you'll have too much noise. Experiment to find the balance that best tells your data's story.
  • Keep Your Audience in Mind. Are you building a high-level dashboard for an executive? Use broader bins. Are you doing a deep dive for a marketing analyst? Use narrower, more specific bins.
  • Use Bins in Slicers. Add your new binned field to a Slicer visualization. This allows your report viewers to filter the entire report by a specific group, such as only looking at customers in the "30-39" age bracket.
  • Ensure Correct Sorting. When you create custom bins with DAX, Power BI might sort them alphabetically (e.g., "Large," "Medium," "Small"). To fix this, you can create a separate calculated column with a numeric order (e.g., 1 for Small, 2 for Medium, 3 for Large) and use the 'Sort by Column' feature in the Modeling tab to sort your text-based bins correctly.

Final Thoughts

Binning is a fundamental skill in data analysis that turns sprawling numerical data into structured, insightful categories. Whether you're using Power BI's simple "New Group" feature for quick distributions or writing custom DAX for tailored business logic, it's an essential technique for clarifying your reports and uncovering hidden trends.

Mastering tools like Power BI takes time, especially when your goal is just to get quick answers from your data. The process of connecting data, setting up bins, and building visualizations is powerful, but often slower than the speed of business. That's a core reason we created Graphed. It allows you to skip straight to the insight by simply asking questions in plain English. You can prompt, "Show me a breakdown of transaction sizes," and our AI data analyst handles the grouping and visualization for you, delivering a live chart in seconds, not minutes.

Related Articles

How to Enable Data Analysis in Excel

Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!