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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.