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
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
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.