Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ellac
Helper III
Helper III

Power BI Desktop Grouping Problem

Hi community!

I'm trying to wrap my head around a grouping problem in Power BI Desktop. I want to be able to group a categorical column in one group with one category and all the other categories in the other group, i.e. "Category 1" and "Other". This is working just fine. Here's my problem: is it possible to be able to choose this "Category 1" by some filter solution? I want to able to choose whatever category and then compare it to the rest of the categories.

 

Category 1 chosen in filter:

ellac_0-1666798489502.png

 

Category 2 chosen in filter:

ellac_1-1666798842987.png

 

Thanks in advance!

/Ella

 

 

1 ACCEPTED SOLUTION

also works with multi selection using the approach. 🙂

Mikelytics_0-1666801924252.png

 

Best regards

Mikelytics

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your kudos.

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

5 REPLIES 5
Mikelytics
Resident Rockstar
Resident Rockstar

Hi ellac,

 

Please try this:

 

Measure 1 for your selected values (can be any formula):

#003_1 Base Measure (for selected Values) = 
SUM(FactInternetSales[SalesAmount])

 

Measure 2 foir the other values (refery to Measure 1) and in my case the ALL fucntion refers to the table where the categories are you want to filter by.

#003_2 MeasuresNonSelected (Others) = 
CALCULATE(
    [#003_1 Base Measure (for selected Values)],
    ALL(DimProductCategory)
)

-

[#003_1 Base Measure (for selected Values)]

 

when you put both measures in the pie chart

Mikelytics_0-1666801583054.png

 

 

Can you try please?

 

Best regards

Michael

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your kudos.

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

also works with multi selection using the approach. 🙂

Mikelytics_0-1666801924252.png

 

Best regards

Mikelytics

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your kudos.

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Hi, thanks for your solution! This clearly solves the problem, even though I preferably wanted to use the grouping functionality in Power BI - but I will try to work with this (afraid that the solution will be slow since I have a lot of data to process in the measures). Thanks! 🙂

Awesome! Thank you for your feedback! 😊

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Analystmate
Helper II
Helper II

@ellac 
if you want to compare category data points using Slicer, Power Bi gives us the functionality to select multiple values in Slicer. if have to just off "Multi Select with Ctrl "from the Slicer setting.

 

Analystmate_0-1666800787116.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors