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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
aaditya2000
Helper II
Helper II

Count?

Hello:

 

I need help with calculation.

 

I want to calculate total count of cars where BreakWorkDone YES or NO

 

Any help is greatly appreciated.

 

Thanks

CarsBreakworkDone
Car1YES
Car2YES
Car3YES
Car4NO
Car5NO
Car6NO
Car7YES
Car8YES
1 ACCEPTED SOLUTION

Hi @aaditya2000

 

If you drag the [cars] field to the canvas and turn it into a pie chart.  Make sure that [Cars] is in the value field, then drag [BreakworkDone] to the legend field as per this image

 

cars.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

4 REPLIES 4
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @aaditya2000

 

Do you want a visual that will show that you have 5 yes and 3 No?

 

Or something that will say you have 8 cars? 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hello Phil:

 

Thank you for your reply.

 

it should show me that total 5 cars are YES and 3 Cars is NO.

 

I want to display this count of cars with Yes & NO in PIE chart.

 

Thank you again.

Hi @aaditya2000

 

If you drag the [cars] field to the canvas and turn it into a pie chart.  Make sure that [Cars] is in the value field, then drag [BreakworkDone] to the legend field as per this image

 

cars.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thank you phil, that helped me to resolve.

 

Thank you again.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.