<?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: Multiply 2 columns from 2 different data tables in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2217666#M65713</link>
    <description>&lt;P&gt;=sumx(relatedtable(table1),sumx(relatedtable(table2),table1[Balance]*table2[rate]))&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 08:22:39 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2021-12-02T08:22:39Z</dc:date>
    <item>
      <title>Multiply 2 columns from 2 different data tables</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2217578#M65712</link>
      <description>&lt;P&gt;Help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 data tables link with look_up table throug Field PID:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Table 1 [PID, Balance] link with Look_up table[PID]: relation n*1&lt;/LI&gt;&lt;LI&gt;Table 2 [PID, RATE] link with Look_up table [PID]: relation n*1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How to calculate field RATE * BALANCE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try use SUMX &amp;amp; RELATE, but it not work, becaus 2 data table Tabale 1 and Table 2 not Link directly (relationship type n * n).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 07:41:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2217578#M65712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-02T07:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply 2 columns from 2 different data tables</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2217666#M65713</link>
      <description>&lt;P&gt;=sumx(relatedtable(table1),sumx(relatedtable(table2),table1[Balance]*table2[rate]))&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 08:22:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2217666#M65713</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-12-02T08:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply 2 columns from 2 different data tables</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2222440#M65898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested on my side. Here's my data model.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to put the [PID] from Look_up table into the visual.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUM('Table 1'[Balance])*SUM('Table 2'[RATE])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;STRONG&gt;&lt;EM&gt; Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:07:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2222440#M65898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-06T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply 2 columns from 2 different data tables</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2226744#M66033</link>
      <description>&lt;P&gt;Awesome, it works.&lt;/P&gt;&lt;P&gt;But could you help me to understand more about the logic here.&lt;/P&gt;&lt;P&gt;Function SUMX: &lt;SPAN class="fontstyle0"&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class="fontstyle1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="fontstyle1"&gt;Table&lt;/SPAN&gt;&lt;SPAN class="fontstyle1"&gt;, &lt;/SPAN&gt;&lt;SPAN class="fontstyle1"&gt;Expression&lt;/SPAN&gt;&lt;SPAN class="fontstyle1"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table: &lt;SPAN class="fontstyle0"&gt;Table in which the expression will be evaluated&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="fontstyle0"&gt;Expression: Expression to be evaluated for each row of the given table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 03:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2226744#M66033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-08T03:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply 2 columns from 2 different data tables</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2226751#M66034</link>
      <description>&lt;P&gt;Wow, It looks more simple. I like your solution.&lt;/P&gt;&lt;P&gt;I will test. Actually Table 1 and Table 2 link with 2 lookup: PID &amp;amp; Currency like that:&lt;/P&gt;&lt;P&gt;Table1 (PID, Currency, Balance)&lt;/P&gt;&lt;P&gt;Table2 (PID, Currency, Rate)&lt;/P&gt;&lt;P&gt;I will try to use your solution to check whether it works. Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 03:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Multiply-2-columns-from-2-different-data-tables/m-p/2226751#M66034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-08T03:23:05Z</dc:date>
    </item>
  </channel>
</rss>

