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
Jeremie
Frequent Visitor

Show Items with no data filtering behaviour

I've noticed that the "Show items with no data" has changed the way filtering works.  Suppose I have two tables, fact and dim.  Fact contains the values 3,4,5,5 and dim contains 1,2,3.  They are related with a one (dim) to many (fact) relationship with a single cross filter direction.

 

Screen Shot 2017-08-08 at 8.08.22 AM.png

 

The show items with no data option will show items that are in the dim but not in the fact.  Namely; 1,2.  That seems reasonable.

 

Screen Shot 2017-08-08 at 7.59.20 AM.png

 

So I can filter on the blanks in the dimension to get everything in that fact that's missing.  However, if I wanted to do the opposite, the empty items in fact are not really blank.  If I try and use the filter to return "blanks" from the fact table, why does it return all values from the dim table?

 

Screen Shot 2017-08-08 at 8.10.25 AM.png

 

I know I could create a calculated value that finds the number of related items in the fact table, effectively doing what I'm asking for.  I would like to understand why powerBI behaves this way, and if it's a bug or a feature.  In the past, I had frequently been using a relationship between two tables and filtering one way or the other to quickly access data quality.

 

Regards,

Jeremie

 

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

@Jeremie,

 

Hi Jeremie,

 

That's the function of "Cross filter direction". If you change it into "both", the result would be right. (part 2 of the snapshot)  powerbi-desktop-create-and-manage-relationships

>>>Both - This is the most common, default direction. This means for filtering purposes, both tables are treated as if they're a single table.  

 

To be simple, Power BI can't filter dim table from fact table to dim table. Show Items with no data filtering behaviour 1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Employee
Employee

@Jeremie,

 

Hi Jeremie,

 

That's the function of "Cross filter direction". If you change it into "both", the result would be right. (part 2 of the snapshot)  powerbi-desktop-create-and-manage-relationships

>>>Both - This is the most common, default direction. This means for filtering purposes, both tables are treated as if they're a single table.  

 

To be simple, Power BI can't filter dim table from fact table to dim table. Show Items with no data filtering behaviour 1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Dale,

 

The cross filter direction doesn't really answer my question, however your comment that "Power BI can't filter dim table from fact table to dim table." does. 

 

thanks

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.

Top Solution Authors