<?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 Data Extraction from Unrelated tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Extraction-from-Unrelated-tables/m-p/3678442#M142829</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have 3 tables, fact sales momthly, fact gross price and dim products.&lt;/LI&gt;&lt;LI&gt;dim products have one to many relation with both fact tables but the fact tables do not have any relation between them.&lt;/LI&gt;&lt;LI&gt;fact_sales_monthly have sales quantity column and fact_gross_price have gross_price column. I want to calculate sales_amount that is sales quantity*gross_price.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How to do it in dax or any other way ?&lt;BR /&gt;I tried using RELATED(), CROSSFILTER(), LOOKUP(), didnt work out.&lt;BR /&gt;&lt;BR /&gt;I have attached the image of my datamodel.&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2024 13:18:57 GMT</pubDate>
    <dc:creator>Swam80</dc:creator>
    <dc:date>2024-02-04T13:18:57Z</dc:date>
    <item>
      <title>Data Extraction from Unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Extraction-from-Unrelated-tables/m-p/3678442#M142829</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have 3 tables, fact sales momthly, fact gross price and dim products.&lt;/LI&gt;&lt;LI&gt;dim products have one to many relation with both fact tables but the fact tables do not have any relation between them.&lt;/LI&gt;&lt;LI&gt;fact_sales_monthly have sales quantity column and fact_gross_price have gross_price column. I want to calculate sales_amount that is sales quantity*gross_price.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How to do it in dax or any other way ?&lt;BR /&gt;I tried using RELATED(), CROSSFILTER(), LOOKUP(), didnt work out.&lt;BR /&gt;&lt;BR /&gt;I have attached the image of my datamodel.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 13:18:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Extraction-from-Unrelated-tables/m-p/3678442#M142829</guid>
      <dc:creator>Swam80</dc:creator>
      <dc:date>2024-02-04T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Extraction from Unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Extraction-from-Unrelated-tables/m-p/3678476#M142832</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="681124" data-lia-user-login="Swam80" class="lia-mention lia-mention-user"&gt;Swam80&lt;/a&gt;&amp;nbsp;I would think a column in your dim_product table like this should work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
  VAR __Sold = SUMX(RELATEDTABLE('gdb023 fact_sales_monthly'), [sold_quantity])
  VAR __Price = SUMX(RELATEDTABLE('gdb023 fact_sales_price'), [gross_price])
  VAR __Result = __Sold * __Price
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 04 Feb 2024 14:22:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Extraction-from-Unrelated-tables/m-p/3678476#M142832</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-04T14:22:22Z</dc:date>
    </item>
  </channel>
</rss>

