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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Stormborn20
New Member

Slicing Values of Column Into Pie Chart

I have a colume called MissingPatches that I want to slice up into into a pie chart to show individual values ranges, like Missing Patches 1-5, Missing Patches 5-15, etc etc. Any advice on where to begin with this would be greatly appreciated.

2 REPLIES 2
AlexChen
Employee
Employee

Hi,

 

You can do it using calculated column. Please refer to sample below:

 

I assume you have table called “patchInfo” like below.

 

1.png

 

Create a calculated column :

 

Column = if(patchInfo[MissingPatches] <= 5, "missingPatch 1-5", "missingPatch other")

 

2.png

 

Now you can create a pie chart and slicer to show this.

 

3.png

Best Regards

Alex

 

 

 

ankitpatira
Community Champion
Community Champion

@Stormborn20 Go to power bi desktop query editor, under Add Column tab, Conditional column and create conditional column such as if value in your column is greater or equal to 1 and less than or equal to 5 then 1-5 and so on. Then use that conditional column in pie chart as category and your original column as values.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.