Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm trying to summarize some data, but only want to keep the first instance of one of the categories.
Data example 'Shops' here:
Product | Shop type | Shop category |
Bread rolls | Supermarket | Big store |
Bread rolls | Bakery | Little store |
Bread rolls | Freezer shop | Little store |
Vodka | Supermarket | Big store |
Paracetamol | Supermarket | Big store |
Paracetamol | Pharmacy | Little store |
Tomatoes | Farmer | Little store |
Shop category is a calculated column based on Shop type.
I'd want the summarized output to be:
Product | Main category |
Bread rolls | Big store |
Vodka | Big store |
Paracetamol | Big store |
Tomatoes | Little store |
Is there a way of doing this in SUMMARIZE?
At the moment my summarize command is:
Depending on why you need to summarize, you might not need to use a calculation for it:
If you do need to create a summary, you can consider using something like
Summarized = SUMMARIZE('Table', 'Table'[Product], "First Category", CALCULATE(MIN('Table'[Shop category]))
Just a note: the MIN takes the first product alphabetically. If you have some index in your raw data, it's best that you use that in the calculation.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
66 | |
65 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
42 | |
39 |