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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Grouping Categories

Hi everyone,

 

I am designing a pie chart that the categorical field has a lot of values which makes the chart to be clustered. I am thinking creating a new column that will group any category that has more than 100 as "Others" in the chart.

 

tobz_0-1597784113226.png

 

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

e1.png

 

You may create a conditional column in 'Query Editor' or a calculated column in Power BI Desktop.

Conditional column:

e2.png

 

Calculated column:

Calculated Column Group = 
IF(
    [Value]>=100,
    "Others",
    [Category]
)

 

Result:

e3.png

 

e4.png

 

Best Regards

Allan

 

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

 

 

Anonymous
Not applicable

I was able to use this to solve it but I ntoiced it does not work well with other filters in the report

Car Group = 
IF (
	CONTAINS ( 
		TOPN (
			10,
			SUMMARIZE ( 
				'Sales',
				[Name],
				"Total Sales",
				SUM ( 
				'Sales'[Amount]
				)
			),
			[Total Sales]
		),
		'Sales'[Name],
		'Sales'[Name]
	) = TRUE (),
	[Name],
	"Other Cars"
)
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

use the new tool data groups. Select the column in data view, click on button Data groups > New data groups and play around the settings in the dialog.

Dailog: GroupsDailog: Groups

 Regards FrankAT

 

jdbuchanan71
Super User
Super User

@Anonymous 

Can you share your .pbix file? Upload it to OneDrive or DropBox and share the link here.  You will need an additional table with the player names and an additonal row of "Other Players" then the measure is pretty straight forward.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.