<?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 Working with unrelated tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2636221#M77281</link>
    <description>&lt;P class="lia-align-left"&gt;Hi,&lt;/P&gt;&lt;P class="lia-align-left"&gt;Context- I have 10 tables; out of which 4 tables are related to cost and there exist many to many relationship among them. There is 1 table about project name and ID. The ID column is also in all the tables but not for all rows.&lt;/P&gt;&lt;P class="lia-align-left"&gt;Summary- A messed up data model that works for a few reports that&amp;nbsp; I don't want to change&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Question- The user selects the project ID and I have to fetch all the cost related data if the project ID exist in the table. Is there any way to handle via DAX?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 11:51:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-13T11:51:52Z</dc:date>
    <item>
      <title>Working with unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2636221#M77281</link>
      <description>&lt;P class="lia-align-left"&gt;Hi,&lt;/P&gt;&lt;P class="lia-align-left"&gt;Context- I have 10 tables; out of which 4 tables are related to cost and there exist many to many relationship among them. There is 1 table about project name and ID. The ID column is also in all the tables but not for all rows.&lt;/P&gt;&lt;P class="lia-align-left"&gt;Summary- A messed up data model that works for a few reports that&amp;nbsp; I don't want to change&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Question- The user selects the project ID and I have to fetch all the cost related data if the project ID exist in the table. Is there any way to handle via DAX?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 11:51:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2636221#M77281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-13T11:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Working with unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2636438#M77294</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Yes, you can use TREATAS or CALCULATE with a FILTER clause that identifies the project code, etc. Many ways to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2636438#M77294</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-07-13T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Working with unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2646167#M77857</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can add a variable to store the selection from the slicer and use the 'IN' operator with this variable as a condition in a filter to calculate with the target table records.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR selected =
    VALUES ( Table[Column] )
RETURN
    CALCULATE (
        SUM ( Table2[Sales] ),
        FILTER ( ALLSELECTED ( Table2), [Column] IN selected )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 02:18:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-with-unrelated-tables/m-p/2646167#M77857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-19T02:18:12Z</dc:date>
    </item>
  </channel>
</rss>

