<?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: Totals from SummarizeColumns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3360838#M126339</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529690" data-lia-user-login="PKPK90" class="lia-mention lia-mention-user"&gt;PKPK90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SupplyDemandPerItem =
SUMMARIZECOLUMNS(
    DistinctTable[ItemKey],
    "Demand", SUMX(SUMMARIZECOLUMNS(
        DistinctTable[Site],
        DistinctTable[ItemKey],
        "Demand", MAX(DistinctTable[RunningRequirement])
    ), [Demand]),
    "Supply", SUMX(SUMMARIZECOLUMNS(
        DistinctTable[Site],
        DistinctTable[ItemKey],
        "Supply", MAX(DistinctTable[RunningReception])
    ), [Supply])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&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.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 02:45:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-02T02:45:42Z</dc:date>
    <item>
      <title>Totals from SummarizeColumns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3359650#M126294</link>
      <description>&lt;P&gt;Hi, I have created new table&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SupplyDemandPerSiteItem = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; DistinctTable[Site],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; DistinctTable[ItemKey],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Demand"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(DistinctTable[RunningRequirement]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Supply"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(DistinctTable[RunningReception]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from this table I want to get&lt;BR /&gt;SupplyDemandPerItem=&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;SupplyDemand[ItemKey],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; "Demand",SUM(Demand),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; "Supply",SUM(Supply))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is it possible to&amp;nbsp;to achieve the same result but in the first table?&lt;BR /&gt;I don't want to create two tables if it's not necessary.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3359650#M126294</guid>
      <dc:creator>PKPK90</dc:creator>
      <dc:date>2023-08-01T11:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Totals from SummarizeColumns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3360838#M126339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529690" data-lia-user-login="PKPK90" class="lia-mention lia-mention-user"&gt;PKPK90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SupplyDemandPerItem =
SUMMARIZECOLUMNS(
    DistinctTable[ItemKey],
    "Demand", SUMX(SUMMARIZECOLUMNS(
        DistinctTable[Site],
        DistinctTable[ItemKey],
        "Demand", MAX(DistinctTable[RunningRequirement])
    ), [Demand]),
    "Supply", SUMX(SUMMARIZECOLUMNS(
        DistinctTable[Site],
        DistinctTable[ItemKey],
        "Supply", MAX(DistinctTable[RunningReception])
    ), [Supply])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 02:45:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3360838#M126339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T02:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Totals from SummarizeColumns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3368435#M126721</link>
      <description>&lt;P&gt;Thanks, I am receiving error message like:&lt;/P&gt;&lt;P&gt;SummarizeColumns() and AddMissingItems() may not be used in this context.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 13:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3368435#M126721</guid>
      <dc:creator>PKPK90</dc:creator>
      <dc:date>2023-08-07T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Totals from SummarizeColumns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3368880#M126742</link>
      <description>&lt;P&gt;Check this one&lt;BR /&gt;SupplyDemandPerItem =&lt;BR /&gt;VAR DemandTable =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;DistinctTable,&lt;BR /&gt;DistinctTable[Site],&lt;BR /&gt;DistinctTable[ItemKey],&lt;BR /&gt;"Demand", MAX(DistinctTable[RunningRequirement])&lt;BR /&gt;)&lt;BR /&gt;VAR SupplyTable =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;DistinctTable,&lt;BR /&gt;DistinctTable[Site],&lt;BR /&gt;DistinctTable[ItemKey],&lt;BR /&gt;"Supply", MAX(DistinctTable[RunningReception])&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;DistinctTable[ItemKey],&lt;BR /&gt;"Demand", SUMX(DemandTable, [Demand]),&lt;BR /&gt;"Supply", SUMX(SupplyTable, [Supply])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 17:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3368880#M126742</guid>
      <dc:creator>Anil_kapkoti</dc:creator>
      <dc:date>2023-08-07T17:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Totals from SummarizeColumns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3369821#M126786</link>
      <description>&lt;P&gt;Hi, I am receiving the same values for every Item.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totals-from-SummarizeColumns/m-p/3369821#M126786</guid>
      <dc:creator>PKPK90</dc:creator>
      <dc:date>2023-08-08T08:41:24Z</dc:date>
    </item>
  </channel>
</rss>

