Forum Discussion

send2mark's avatar
send2mark
Frequent Visitor
2 years ago
Solved

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 ...
  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    Hi send2mark 
    If your table is like this:

    You can create 2 measures like :

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

    If Your table is like :

    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.