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
Alex_Hasan
Helper II
Helper II

Making an active relationship between two tables where no relationship exists

In this two tables, there is no relationship (Only many to many relatioship can be formed). So, I want to make 1 to many relationship where the factsales will also contain customerkey (Many side)  How to write a dax forthis? 

 

 

Capture.PNG

 

4 REPLIES 4
v-mengzhu-msft
Community Support
Community Support

Hi @Alex_Hasan,

 

You should first create relationship between two tables, through the same field:

vmengzhumsft_0-1659088600158.png

And then you can make 1 to many relationship based on “Customer Key.

 

Best regards,

Community Support Team Selina zhu

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

 

Hi, those two ETLloadIDs are many to many relationship.  what should I do? 

amitchandak
Super User
Super User

@Alex_Hasan , In the customer table, the customer key should be unique and should not have a blank value. then you should be able to create a 1-M join

Yes, customer key column is unique and does not have a blank value. But how to create a customer key column in factsales table?   

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.