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
send2mark
Frequent Visitor

Pie chart to count empty and non-empty fields

I am using a pie chart show how much of my documentation is missing in a dataverse table. So let's say I have 30 line item and I am missing 10 in a column called Owners. The pie chart should show 20 filled in and 10 that are empty.

 

Right now it is showing me total items and total filled in.

1 ACCEPTED SOLUTION

Hi @send2mark 
If your table is like this:

Ritaf1983_0-1719464233356.png

You can create 2 measures like :

completed = CALCULATE(DISTINCTCOUNT('Table'[Document id]),'Table'[Owner]<>"")
Not completed = CALCULATE(DISTINCTCOUNT('Table'[Document id]),'Table'[Owner]="")
Result :
Ritaf1983_1-1719464662962.png

If Your table is like :

Ritaf1983_2-1719464721670.png

The measures will be :

completed_2 = CALCULATE(DISTINCTCOUNT('Table (2)'[Document id]),FILTER('Table (2)',Not ISBLANK('Table (2)'[Owner])))
Not_completed_2 = CALCULATE(DISTINCTCOUNT('Table (2)'[Document id]),FILTER('Table (2)',ISBLANK('Table (2)'[Owner])))
Pbix withe example is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @send2mark - Any sample data or snapshot of pie chart helps to understand about the current situation. can you please share it.

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





send2mark_0-1719429640191.png

 

Hi @send2mark 
If your table is like this:

Ritaf1983_0-1719464233356.png

You can create 2 measures like :

completed = CALCULATE(DISTINCTCOUNT('Table'[Document id]),'Table'[Owner]<>"")
Not completed = CALCULATE(DISTINCTCOUNT('Table'[Document id]),'Table'[Owner]="")
Result :
Ritaf1983_1-1719464662962.png

If Your table is like :

Ritaf1983_2-1719464721670.png

The measures will be :

completed_2 = CALCULATE(DISTINCTCOUNT('Table (2)'[Document id]),FILTER('Table (2)',Not ISBLANK('Table (2)'[Owner])))
Not_completed_2 = CALCULATE(DISTINCTCOUNT('Table (2)'[Document id]),FILTER('Table (2)',ISBLANK('Table (2)'[Owner])))
Pbix withe example is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.