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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Relationships and duplicate

Hi,

I have 3 tables from sql server and I tried to connect them via their keys in PowerBI Desktop. (T1->T2 and T1->T3). T1 and T2 is ok but when I try T1 and T3 I get this message "one of the tables must contains unique values" (Im afraid deleting these duplicate will affect my results). And when I tried to delete them, I have this error : this step generates a query that is not supported in the Direct Query mode" with the option "dump all tables on Import mode" thing that I dont want because the tables are really huge. Any ideas? 

1 REPLY 1
AlexisOlson
Super User
Super User

To create a one-to-many relationship, the one side must have unique values and no nulls in the column you are creating the relationship on. If this doesn't work for your situation, you may need a many-to-many relationship.

 

I can't tell if you do or not from the information you've given but if you do need many-to-many, I'd recommend reading this first:

https://www.sqlbi.com/articles/many-to-many-relationships-in-power-bi-and-excel-2016/

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors