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

Manage relationship of 4 tables

Hi

 

I have 4 tables (ie. 1 Primary and 3 Secondary) as in below :

 

1) All Transport (primary)

2) Dealer master ( Destination = DealerName)

3) Yard master (FromYard = YardName)

4) All Budget (CustomerName = Name)

 

I want to achieve below dashboard but don't know to manage the relationships of the 4 tables.

Appreciate any advice. Thanks.

 

IMG_20180503_091236.jpgIMG_20180503_091300.jpgIMG_20180503_091332.jpg

1 ACCEPTED SOLUTION

HI @Grace1,

 

Current power bi not support 'many to many' relationship, you need to use unique records table as the bridge to link other tables.

 

If you can't ensure which table contains unique records, you can try to manually create one to link other tables.

 

Sample table:

Cusotmer Name =
DISTINCT (
    UNION (
        VALUES ( 'All Transport'[CustomerName] ),
        VALUES ( 'Dealer master'[CustomerName] ),
        VALUES ( 'Yard master'[CustomerName] ),
        VALUES ( 'All Budget'[CustomerName] )
    )
)

 

Reference link:

Create and manage relationships in Power BI Desktop

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Grace1,

 

After research on your screenshot, I found you can try to use 'Yard master' as bridge table to link other tables with 'customer name' column.('one to many' relationship)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi Xiaoxin Sheng,

 

I try to create relationship using ' customer name' as the link between the other tables but has error "You can't create a relationship between theses two columns because one of the columns must have unique values."  

HI @Grace1,

 

Current power bi not support 'many to many' relationship, you need to use unique records table as the bridge to link other tables.

 

If you can't ensure which table contains unique records, you can try to manually create one to link other tables.

 

Sample table:

Cusotmer Name =
DISTINCT (
    UNION (
        VALUES ( 'All Transport'[CustomerName] ),
        VALUES ( 'Dealer master'[CustomerName] ),
        VALUES ( 'Yard master'[CustomerName] ),
        VALUES ( 'All Budget'[CustomerName] )
    )
)

 

Reference link:

Create and manage relationships in Power BI Desktop

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.