<?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: combine groupby with sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661816#M78960</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SAM sum of sales =
SUMX (
    RELATEDTABLE ( 'SAM Facturatieregels' ),
    'SAM Facturatieregels'[Overeenkomstnummer]
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 26 Jul 2022 11:24:36 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-07-26T11:24:36Z</dc:date>
    <item>
      <title>combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661676#M78950</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could realy use your help on this one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have two tables, both containing a key wich i could use to match rows of the two tables.&lt;/P&gt;&lt;P&gt;But, this would be a many to many realtion because in both table the key is present more than 1 time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i to compute is the total sales amount by key from table A, and then also compute the total sales amount by key of table B.&lt;/P&gt;&lt;P&gt;for table A i have used groupby. But now i would like to add a column in which the sum of sales by key from table B is shown. That way i can compare "Amount_By_Key" with "SAM sum of sales" per "key".&lt;/P&gt;&lt;P&gt;Basically i want to compare the total sales amount by key in table A with table B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: some keys that excist in table A dont appear in table B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find attached the data:&amp;nbsp;&lt;A title="Data" href="https://1drv.ms/x/s!Av_y9jTl7MLlkABiVtanq9J-YZ47?e=zctt5P" target="_blank" rel="noopener"&gt;OneDrive data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 10:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661676#M78950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T10:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661816#M78960</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SAM sum of sales =
SUMX (
    RELATEDTABLE ( 'SAM Facturatieregels' ),
    'SAM Facturatieregels'[Overeenkomstnummer]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:24:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661816#M78960</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T11:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661849#M78963</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;thanks for the reply. When i try to do that i get an exception:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;the key contains numeric values combined with text values&lt;BR /&gt;any other suggestion?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661849#M78963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T11:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661857#M78966</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I thought this is the column that you want to sum. What is the name of that column?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:33:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661857#M78966</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T11:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661866#M78968</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i want to sum 'SAM Facturatieregels' [Factuurbedrag in valuta] by key.&lt;BR /&gt;when i try to do this i get:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;please have a look in the excel file (One drive) tab "result".&lt;/P&gt;&lt;P&gt;that exact outcome i would like to build in PowerBI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661866#M78968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661879#M78974</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Then use&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SAM sum of sales =
SUMX (
    RELATEDTABLE ( 'SAM Facturatieregels' ),
    'SAM Facturatieregels'[Factuurbedrag in valuta]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:43:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661879#M78974</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661914#M78975</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;already did so (see my reply before this message).&lt;BR /&gt;the outcome is not satisfying as you can see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:54:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661914#M78975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: combine groupby with sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661952#M78977</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Are you sure there is a relationship between the twoo tables? If not you can use&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SAM sum of sales =
SUMX (
    FILTER (
        'SAM Facturatieregels',
        'SAM Facturatieregels'[Overeenkomstnummer] = 'CBA by key'[Key]
    ),
    'SAM Facturatieregels'[Factuurbedrag in valuta]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:06:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/combine-groupby-with-sum/m-p/2661952#M78977</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T12:06:49Z</dc:date>
    </item>
  </channel>
</rss>

