<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatically import One-to-one relationship with Direct Query in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1391314#M25856</link>
    <description>&lt;P&gt;there are several warning flags in what you describe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually 1:1 relationships mean that you should have combined the tables at the source.&amp;nbsp; Having blank values on either end of the relationship is highly un-recommended.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 21:41:05 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-09-23T21:41:05Z</dc:date>
    <item>
      <title>Automatically import One-to-one relationship with Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1390736#M25844</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make it easier for our team to import tables to reports with the relationships already setup.&amp;nbsp; I was able to create relationships by using foreign keys in the underlying datasources sql schema.&amp;nbsp; However, ideally there are some relationships that should import as one-to-one (currently they are only showing up as one to many).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating a primary key on one table as the foreign key of another table with a unique contraint.&amp;nbsp; This still imports as one to many.&amp;nbsp; Is there any way to get DirectQuery tables to have a one-to-one relationship automatically recognized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Edit* further clarification, it's truely a 1 to zero or 1 as it's possible for there to be no record for some primary key values in the table w/ the foreign key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Kevin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1390736#M25844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-23T16:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically import One-to-one relationship with Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1391314#M25856</link>
      <description>&lt;P&gt;there are several warning flags in what you describe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually 1:1 relationships mean that you should have combined the tables at the source.&amp;nbsp; Having blank values on either end of the relationship is highly un-recommended.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 21:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1391314#M25856</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-23T21:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically import One-to-one relationship with Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1393019#M25865</link>
      <description>&lt;P&gt;Hi, so there is a simple reason why my schema has this.&amp;nbsp; Basically I have dozens of tables that relate to a user table by a userid.&amp;nbsp; Those tables referencing users will either have no record for a user, or a single record for a user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But lets focus on the actual question - Is it possible in power bi to have relationships automatically import as one-to-one using direct query?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 12:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automatically-import-One-to-one-relationship-with-Direct-Query/m-p/1393019#M25865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-24T12:16:51Z</dc:date>
    </item>
  </channel>
</rss>

