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

Relationship filters - how to not filter?

Hi all!

 

Small question: When I create a relationship between the products listed in dataset A and B (many to many and bi-diretional) with A having more products in it then B, only the matching products between A and B will be shown. Why does the relationship filters A's dataset? And can I overcome this problem?

 

Thank you so much in advance!

 

Kind regards,

 

Fleur de Clercq

1 ACCEPTED SOLUTION
v-tianyich-msft
Community Support
Community Support

Hi @Fleurdc ,

 

You can try using single cross filter direction, or use measure:

vtianyichmsft_0-1706855041633.png

Measure = var _select = VALUES('Table'[Category])
RETURN COUNTAX('Table',[Category] in _select)

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

4 REPLIES 4
v-tianyich-msft
Community Support
Community Support

Hi @Fleurdc ,

 

You can try using single cross filter direction, or use measure:

vtianyichmsft_0-1706855041633.png

Measure = var _select = VALUES('Table'[Category])
RETURN COUNTAX('Table',[Category] in _select)

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

amustafa
Super User
Super User

It depends which table you are pulling the column(s) from. Best to go back in Power Query and merge or append both tables to get a single table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you Amustafa for your answer! Though, list B consists of a list of categories and then of which products the categories consist of. I want to be able to select a category and then display the corresponding products. The problem here is: when I want to make one list of A and B by appending or merging, some products will be in more than one category, which makes appending or merging difficult (it will result in more than one column (a seperate one for every category) added per product. Then, when I want to choose the category in my graph, it does not work or it does not recognize it.

Do you have a solution for that by any chance?

 

Can you privide a sample data and expected outcome?

Please refer to this post: How to Get Your Question Answered Quickly - Microsoft Fabric Community





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.