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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Bi-directional filtering with different columns for each direction?

Hello all, I have a question about bi-directionally filtering two tables with different columns based on the direction. 

 

Say this is Person Table:

IdName
1John
2Paul
3John Jr.
4Paul Jr.

Say this is Child Table:

IdParentIdName
31John Jr.
42Paul Jr.

 

The functionality I want is when I click a row in the Person Table then it will get all of their children (Id -> ParentId) in the Child Table. This can be done with a one-to-many (there could be multiple children) single directional relationship from the Person Table to the Child Table.

 

However, I also want a functionality of, when clicking a row in the Child Table, it gets that person (Id -> Id) in the Person Table. This can be done by with a one-to-one single directional relationship from the Child Table to the Person Table.

 

The problem I'm having is PowerBI isn't letting me put two relationships, even though they are going opposite ways, onto the two data models. I also can't just have one relationship that is bi-directional because I am filtering on different columns depending on the direction. The whole point of this is so that I can click a Parent in the Person Table, have their children pop up in the Child Table, and then I can click a Child in the Child Table and it will select that Child in the Person Table.

 

Any help or a different approach would be appreciated, thank you!

2 REPLIES 2
lbendlin
Super User
Super User

However, I also want a functionality of, when clicking a row in the Child Table, it gets that person (Id -> Id) in the Person Table

What for?  You already have the Id from the join field?

 

then I can click a Child in the Child Table and it will select that Child in the Person Table

Please define what you mean by "select"

Anonymous
Not applicable


@lbendlin wrote:

 

However, I also want a functionality of, when clicking a row in the Child Table, it gets that person (Id -> Id) in the Person Table

 

What for?  You already have the Id from the join field?

 

 

then I can click a Child in the Child Table and it will select that Child in the Person Table

 

Please define what you mean by "select"


The Person Tables and Child tables have unique columns.

 

My apologies, when I say both "getting" and "selecting" I'm referring to clicking rows in the visual PowerBI tables. I want to be able to click a row in the Person Table and have it select a row in the Child Table (through the Id -> ParentId relatinship). Then, inside the visual PowerBI Child Table, I want to be able to click that child row and have it select (highlight, get, show, whatever you want to call it) a row in the visual Person Table (through the relationship Id -> Id).

 

So this effectively means I'm transitioning my mouse selection, in the visual tables, from the parent's row in the Person Table and then I click the child's row in the Child Table and it shows that child row in the Person table.

 

Heres a visual example for you of the mouse clicks/selections I want to have:

 

CLICK 1

Say this is the Person Table:

IdName
1John
2Paul
3John Jr.
4Paul Jr.

 

This is the Child Table after that click:

IdParentIdName
42Paul Jr.

 

CLICK 2:

 

Say this is the Child Table:

IdParentIdName
42Paul Jr.

 

This is the Person Table after that click:

IdName
4Paul Jr.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.