Microsoft Certified: Power BI Data Analyst AssociateVisualize and analyze the dataMedium

A data analyst is creating a Power BI report to visualize customer demographics, including age. The raw data contains individual customer ages, but the marketing team prefers to see age distribution in predefined groups (e.g., '18-24', '25-34', '35-44', etc.) rather than individual ages. The analyst wants to create these age groups directly within Power BI Desktop to use them in various visuals. Which feature should the analyst use to achieve this?

  1. ACreate a calculated column using DAX for age ranges.
  2. BImplement Row-Level Security (RLS) based on age groups.
  3. CApply conditional formatting rules to the Age column.
  4. DUse the 'Group' function on the Age column to create bins.
Show answer & explanation

Correct answer: D. Use the 'Group' function on the Age column to create bins.

The 'Group' function (binning) in Power BI Desktop allows you to categorize numerical data into predefined ranges or bins, which is exactly what's needed to create age groups from individual ages.

Why the other options are wrong

  • A. While a calculated column could work, the 'Group' function is a simpler, built-in feature specifically for creating bins/groups from numerical data.
  • B. Row-Level Security restricts data visibility for users, which is unrelated to grouping data for visualization.
  • C. Conditional formatting changes the appearance of data based on rules, not groups the underlying data into new categories.

Power BI Grouping (Binning)

Power BI's 'Group' function (also known as binning) allows users to categorize numerical data into custom-sized groups or bins. This is useful for analyzing distributions and trends across ranges rather than individual data points.

  • Creates new, grouped categories from numerical columns.
  • Accessible from the Fields pane by right-clicking a column.
  • Can define fixed-size bins or custom lists of groups.

Memory trick: Turn numbers into boxes, group ages for clear focus.

More Visualize and analyze the data questions