Forum Discussion

shere100's avatar
shere100
Helper II
7 years ago
Solved

Power Bi Filters

Hi, quick question.   If there is no data in the result set currently, how do I a build a data set so if / when there is data in that criteria to include in the filter if not then display a 0?   ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    You're welcome. Thinking a bit more about this. The solution will work, but I don't think it's the most elegant way. 

    You're talking about expected statuses that don't actually exist. But actually, you know what the statuses will be, right?

     

    You can add another table, with the list of expected statuses.

    Then create a Relationship between this table and your current table. That relationship will cause the existing table to be filtered by the new.

     

    Create the following visual to show all statuses:

    1.  Table visual with the Status from the new table, and the Count of Status measure.

    2. Right-click the Status field, and click "Show items with no data". 

     

    Each row in the table is a status - since the new table filters the existing, the existing table is limited to only the rows with that status.