<?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 Related tables - not sure what I'm doing wrong in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Related-tables-not-sure-what-I-m-doing-wrong/m-p/3697455#M143792</link>
    <description>&lt;P&gt;Hi, I have three tables linked to each other. Let's call them table A, B, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to check whether an order number in A, exists in B and C. I would have liked to create two columns in table A; one would show whether that order no. is within B and the second column to show existence in C. However, I am unable to do this, when using the RELATE function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to do this separately, within table B and C. But this does not help when trying to show the information in report view. It seems like the relationships are incorrectly setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationships that are setup are&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B to A (many to one)&amp;nbsp;&lt;BR /&gt;Table C to A (many to one)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to setup the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A to B (one to many)&lt;/P&gt;&lt;P&gt;Table A to C (one to many)&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this is automatically reverted to the former relationships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI - I am not very good with relationships and cardinality so please bare that in mind when responding, thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 23:23:29 GMT</pubDate>
    <dc:creator>Deeks</dc:creator>
    <dc:date>2024-02-13T23:23:29Z</dc:date>
    <item>
      <title>Related tables - not sure what I'm doing wrong</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Related-tables-not-sure-what-I-m-doing-wrong/m-p/3697455#M143792</link>
      <description>&lt;P&gt;Hi, I have three tables linked to each other. Let's call them table A, B, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to check whether an order number in A, exists in B and C. I would have liked to create two columns in table A; one would show whether that order no. is within B and the second column to show existence in C. However, I am unable to do this, when using the RELATE function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to do this separately, within table B and C. But this does not help when trying to show the information in report view. It seems like the relationships are incorrectly setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationships that are setup are&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B to A (many to one)&amp;nbsp;&lt;BR /&gt;Table C to A (many to one)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to setup the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A to B (one to many)&lt;/P&gt;&lt;P&gt;Table A to C (one to many)&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this is automatically reverted to the former relationships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI - I am not very good with relationships and cardinality so please bare that in mind when responding, thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 23:23:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Related-tables-not-sure-what-I-m-doing-wrong/m-p/3697455#M143792</guid>
      <dc:creator>Deeks</dc:creator>
      <dc:date>2024-02-13T23:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Related tables - not sure what I'm doing wrong</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Related-tables-not-sure-what-I-m-doing-wrong/m-p/3697556#M143793</link>
      <description>&lt;P&gt;You can do this with the CONTAINS() function. If you are adding a column, you could use this as a Calculated Column:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONTAINS ( store, Store[CountryRegion], ThisTable[CountryRegion])
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This would look up the CountryRegion field in&amp;nbsp;&lt;EM&gt;this&lt;/EM&gt; table and see if it exists in the Store table in the CountryRegion field there and return TRUE or FALSE.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 01:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Related-tables-not-sure-what-I-m-doing-wrong/m-p/3697556#M143793</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2024-02-14T01:22:23Z</dc:date>
    </item>
  </channel>
</rss>

