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
79775722
Regular Visitor

Report matrix table left outer join with filter or modify underlying query

Hi, I want a matrix table to show both the parent side columns on the left and the many side columns on the right. 

 

I want to apply filter on the many side to show certain records that meets the filter criteria. If not met, I still want to show the parent record on the left side. Is this possible on the Matrix table visual side without changing the data model by applying filter at the PowerQuery ETL side?

 

by default the matrix appears to use left outer joins, but once filter the applied at the report/component level, it filters out the entire row. Is there a setting to prevent that?

 

Thanks.

6 REPLIES 6
amitchandak
Super User
Super User

@79775722 , based on what I got a measure with +0

or this setting can help

ShowItemwithoutdata.JPG

Hi Amit, I was hoping that would work. Unfortunately, when filter is applied on the many side it still didn't show the one side. 

would it be possible to pre apply the filter similar in the power query side. Thanks.

HI @79775722,

Did these blank records not really include in the current table? If that is the case, you can consider creating a table to extract and merge two table category field values and use it as the bridge to link to tables.

How to Join Many to Many with a Bridge Table in Power BI | Seer Interactive

After these steps, you can use the new table field as the category/axis to expand not match records.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks Xiaoxing. I have done that previously and it works. But I'm trying to avoid doing that. Otherwise I will need to create a bridge table for each type of filter and report. I was hoping that step can be eliminated if the matrix table can preapply filter before its default filter is applied which would have included the blank side.

 

This also gave me another idea of manipulating just the new bridge table and keep the dimension table the same. I'll play with that to reduce the number of redundant table with different filter. I tried this, but only one active relationship can be enabled.

 

Thanks.

 

HI @79775722,

Perhaps you can try using treatas or userelationship functions to calculate DAX expressions without active relationships:

Power BI USERELATIONSHIP vs TREATAS - Enterprise DNA

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks, but I'm trying to do this purely with Matrix table with the existing tables. Unless a view like of a table or function can be created?

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.