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