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

Join 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.

Reply
Bidu
Frequent Visitor

How to plot pie chart correctly without creating additional column

Hello everyone,

I have one column in my Table with integer values, I want report in a pie chart values > 0 and values == 0, and its percentage, but I dont want to create a additional column with values "YES":: >0 and "NOT":: == 0 for it. Is it possible? I'm newbie on dax (and I think to keep only essential information on Tables, maybe I'm wrong).

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Bidu 

you may create a disconnected single column, two rows table. Inset table manually, rename it like "CetegoryFilter, rename the column "Category" and inter "Yes", "No" in the first two rows. 
place CategoryFilter[Category] in the pie chart along with the following measure 

IF (

SELECTEDVALUE ( CategoryFilter[Category] ) = "Yes",

COUNTROWS (

FILTER ( 

'Table',

'Table'[Value] = 0

)

),

COUNTROWS (

FILTER ( 

'Table',

'Table'[Value] > 0

)

)

)

 

View solution in original post

6 REPLIES 6
Bidu
Frequent Visitor

For create the Table and insert the two rows, do I this on Power Query?

@Bidu 

From home menu in power bi click on "inset data". The table will be automatically created in power query 

Bidu
Frequent Visitor

Thank you for attention

Bidu
Frequent Visitor

@tamerj1 nice! Thanks.
Now I wanna know about your experience, which solution is more elegant to make this? Am I right about keep only essential information on Table. My intension is make a clear solution, without being a prolixic model

@Bidu 

Let's say your data is a couple of million rows. If you add a column then you're actually adding 2 million cells to your data model. The other solution requires adding 2 cells only. I don't think it is a hard question to answer. 

tamerj1
Super User
Super User

Hi @Bidu 

you may create a disconnected single column, two rows table. Inset table manually, rename it like "CetegoryFilter, rename the column "Category" and inter "Yes", "No" in the first two rows. 
place CategoryFilter[Category] in the pie chart along with the following measure 

IF (

SELECTEDVALUE ( CategoryFilter[Category] ) = "Yes",

COUNTROWS (

FILTER ( 

'Table',

'Table'[Value] = 0

)

),

COUNTROWS (

FILTER ( 

'Table',

'Table'[Value] > 0

)

)

)

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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