<?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 DAX question - SUMX from multiple tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2872988#M92794</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quite new to PowerbI &amp;amp; DAX but have done a course and making good progress. Just stuck on 1 component, where I'd like to calculate a SUMX, based on 2 tables (each of which are removed a few steps via other tables), grouped by another relate table... Unsure how to do approach this in DAX... Suspect it may need ADDCOLUMNS or nested summarize but not very familiar with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a relatively complex database, overview here:&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In simple terms I'd like to show what I &lt;U&gt;think&lt;/U&gt; is a SUMX (ie row level is important) made up of a field from the policy table (lELR) , multplied by a field in the BDX table (%_covered), grouped by the Carrier name in table Binder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;in SQL/Access I did it relativly easily with a query builder. Just a bit of at a loss how to in DAX!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips which way to go with this would be appreciated.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2022 13:03:53 GMT</pubDate>
    <dc:creator>TheJaks</dc:creator>
    <dc:date>2022-10-30T13:03:53Z</dc:date>
    <item>
      <title>DAX question - SUMX from multiple tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2872988#M92794</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quite new to PowerbI &amp;amp; DAX but have done a course and making good progress. Just stuck on 1 component, where I'd like to calculate a SUMX, based on 2 tables (each of which are removed a few steps via other tables), grouped by another relate table... Unsure how to do approach this in DAX... Suspect it may need ADDCOLUMNS or nested summarize but not very familiar with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a relatively complex database, overview here:&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In simple terms I'd like to show what I &lt;U&gt;think&lt;/U&gt; is a SUMX (ie row level is important) made up of a field from the policy table (lELR) , multplied by a field in the BDX table (%_covered), grouped by the Carrier name in table Binder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;in SQL/Access I did it relativly easily with a query builder. Just a bit of at a loss how to in DAX!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips which way to go with this would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 13:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2872988#M92794</guid>
      <dc:creator>TheJaks</dc:creator>
      <dc:date>2022-10-30T13:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX question - SUMX from multiple tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2873007#M92795</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think RELATED DAX function inside SUMX might help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dax.guide/related/" target="_blank"&gt;https://dax.guide/related/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 13:38:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2873007#M92795</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-10-30T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX question - SUMX from multiple tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2873179#M92805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="464044" data-lia-user-login="TheJaks" class="lia-mention lia-mention-user"&gt;TheJaks&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would guess the following&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    SUMMARIZE (
        Payments,
        Policies[Policy ID],
        BDX[BDX],
        "@lELR", SUM ( Policies[lELR] ),
        "@covered", SUM ( BDX[%_covered] )
    ),
    [@lELR] * [@covered]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 30 Oct 2022 17:00:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2873179#M92805</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-30T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX question - SUMX from multiple tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2873220#M92807</link>
      <description>&lt;P&gt;Abosolute legend. Worked a charm. Brilliant and thanks ever so much!!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 18:47:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-question-SUMX-from-multiple-tables/m-p/2873220#M92807</guid>
      <dc:creator>TheJaks</dc:creator>
      <dc:date>2022-10-30T18:47:05Z</dc:date>
    </item>
  </channel>
</rss>

