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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shere100
Helper II
Helper II

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?

 

I have clicked on advanced filtering, in here I can select if a criteria contains the value but if that valuee does not exist then to appear as zero or blank? In advance filtering there is an 'And' and 'Or' statement but not for a one off filter type that does not exist but if it did then to appear.

 

Please advise.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

View solution in original post

21 REPLIES 21

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.