MicrosoftDocs / powerbi-docs

Creative Commons Attribution 4.0 International
444 stars 844 forks source link

Please add that 1-to-1 relations cannot be imported for Direct Query #2526

Closed KevinDEX closed 2 years ago

KevinDEX commented 3 years ago

While setting up some reports for my companies data management team, we attempted to import several tables that used a Primary Key on one table, with a foreign key in another table pointing to that PK as well as a unique constraint on the column. These relationships should be sufficient for Power BI to recognize the relationship between the tables as 1-to-1. And in fact it will if you set the option to NOT detect relationships, then set it manually. If you set it to detect relationships, it maps it to 1..* and it will say 1-1 is an invalid mapping if you attempt to change it.

I brought this up in a support ticket with power bi support team, and confirmed that this is not possible.

This seems like a bug or at least a limitation that should be specified in this document.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

kfollis commented 3 years ago

Thanks for the feedback, @KevinDEX. I'm assigning this to the writer to review and make any updates needed to the article. Thanks for raising the issue!

davidiseminger commented 2 years ago

Thanks for your feedback, we've forwarded this to the feature team for consideration.