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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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