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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Relationships with missing data

screenie.png

Hi all. I need to create a relationship connecting table 1 and table 2.

If I create a link using only ID 1, some data will be lost. Likewise for ID 2.

Is there a way of using both ID 1 and ID in table 2 to link to Table 1?

Thank you

1 ACCEPTED SOLUTION

Hi @Anonymous

 

After splitting the first table. You may set the relationships as below. Then you may create a measure to get all the FirstName.

UpdateFirstName =
IF (
    MAX ( '1(1)'[First Name] ) = BLANK (),
    MAX ( '1 (2)'[First Name] ),
    MAX ( '1(1)'[First Name] )
)

1.png

 

Regards,

Cherie 

Community Support Team _ Cherie Chen
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
PattemManohar
Community Champion
Community Champion

@Anonymous Hmm, you can split the first table into two separate tables (FirstName and ID1) (FirstName and ID2). Then link the table2 to these two tables by ID1 and ID2.




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

Proud to be a PBI Community Champion




Anonymous
Not applicable

screenie2.png

Unfortunately your solution provides this. The first Name and Last name should show all data from both columns

Hi @Anonymous

 

After splitting the first table. You may set the relationships as below. Then you may create a measure to get all the FirstName.

UpdateFirstName =
IF (
    MAX ( '1(1)'[First Name] ) = BLANK (),
    MAX ( '1 (2)'[First Name] ),
    MAX ( '1(1)'[First Name] )
)

1.png

 

Regards,

Cherie 

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

Hi @v-cherch-msft

 

Using your method, will I have to create a new measure for every subsequent column e.g.

UpdateFirstName, UpdateEyeColour,UpdateShoeSize etc?

 

Many thanks

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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