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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Unable to create visuals with a bridge table and many-to-many relationship

Hi Everyone,

 

I am trying to create a data visualization model with two tables. Since only many-to-many relationship exists between these two tables, I created a bridge table (ie. "Item Master" table) to ensure data accuracy. MappingID is the unique key for "Item Master" table and uses as the primary key for all three tables.

dt1119_0-1613967549286.png

 

However, after establishing relationships between these tables, I created a visual to illustrate "MappingID" from two tables but this visual show nothing due to no relationship is detected. I checked that these "mappingID" fields are correctly mapped. But, I cannot create any visual using fields from "DFC" table and "SKU" table. 

 

dt1119_1-1613967770811.png

 

Grateful if any solution can be provided. Thanks!

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , This error comes when you try to use Unsummarized columns from both tables DFC and SKU at the same time you will get this error. Make one of them aggregated(sum/min/max etc), then you can use it.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

The error message occurs when columns from two tables which have no direct relationship are summarized. As is suggested by @amitchandak , you may make some aggregations instead. I created data to reproduce your scenario. The pbix file is attached in the end.

DFC:

b1.png

 

SKU:

b2.png

 

Item Master(a calculated table):

Item Master = 
DISTINCT(
    UNION(
        DISTINCT(DFC[MID]),
        DISTINCT(SKU[MID])
    )
)

 

Relationship:

b4.png

 

You may create two measures like below.

Date Measure = 
CONCATENATEX(
    DFC,
    [Date],
    ","
)
Name Measure = 
CONCATENATEX(
    SKU,
    [Name],
    ","
) 

 

Result:

b3.png

 

 

Best Regards

Allan

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @v-alq-msft  and @amitchandak ,

 

  Thanks for your solutions!

 

Best regards,

Dicky

v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

The error message occurs when columns from two tables which have no direct relationship are summarized. As is suggested by @amitchandak , you may make some aggregations instead. I created data to reproduce your scenario. The pbix file is attached in the end.

DFC:

b1.png

 

SKU:

b2.png

 

Item Master(a calculated table):

Item Master = 
DISTINCT(
    UNION(
        DISTINCT(DFC[MID]),
        DISTINCT(SKU[MID])
    )
)

 

Relationship:

b4.png

 

You may create two measures like below.

Date Measure = 
CONCATENATEX(
    DFC,
    [Date],
    ","
)
Name Measure = 
CONCATENATEX(
    SKU,
    [Name],
    ","
) 

 

Result:

b3.png

 

 

Best Regards

Allan

 

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

 

amitchandak
Super User
Super User

@Anonymous , This error comes when you try to use Unsummarized columns from both tables DFC and SKU at the same time you will get this error. Make one of them aggregated(sum/min/max etc), then you can use it.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors