<?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: SUMX SUMMARIZE group by company in a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-group-by-company-in-a-table/m-p/3767326#M147104</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 17:44:22 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-03-15T17:44:22Z</dc:date>
    <item>
      <title>SUMX SUMMARIZE group by company in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-group-by-company-in-a-table/m-p/3767001#M147073</link>
      <description>&lt;P&gt;Hi all. I have a simple table made of 2 fields and 1 measure:&lt;/P&gt;&lt;P&gt;&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;where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_Sales Denominator YA ORG =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;[_Sales YA ORG]&lt;BR /&gt;, ALL(Company[Company], Company[Brand],Company[Sub Brand], Company[Variant])&lt;BR /&gt;, ALLSELECTED(Period[Period])&lt;BR /&gt;,ALLSELECTED('Market Breakdown'[Country])&lt;BR /&gt;,ALLSELECTED('Organic Claim'[Organic Claim])&lt;BR /&gt;, VALUES('W Segment'[W Segment])&lt;BR /&gt;, VALUES('Market Brkdown'[Hier Level Name])&lt;BR /&gt;, VALUES('Ad Hoc Analysis View'[Category])&lt;BR /&gt;, VALUES('Ad Hoc Analysis View'[Segment])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;what I want to do is to delete the country field and obtain one row for each company with the sum of each _Sales denominator YA ORG for each company. For example I want this result:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;_Sales denominator YA ORG&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PRIVATE LABEL&lt;/TD&gt;&lt;TD&gt;3402952&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;STRAUSS GROUP&lt;/TD&gt;&lt;TD&gt;206&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TCHIBO&lt;/TD&gt;&lt;TD&gt;36854&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TONYS COFFEE ROASTERS&lt;/TD&gt;&lt;TD&gt;2895&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;VERGNANO&lt;/TD&gt;&lt;TD&gt;1131&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WERTFORM&lt;/TD&gt;&lt;TD&gt;3987&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WICKED JOE LLC&lt;/TD&gt;&lt;TD&gt;23592&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WOSEBA&lt;/TD&gt;&lt;TD&gt;1035&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So what I've tried is to modify the measure this way:&lt;/P&gt;&lt;P&gt;_Sales denominator YA ORG=&lt;/P&gt;&lt;P&gt;SUMX(&lt;/P&gt;&lt;P&gt;SUMMARIZE( 'Ad Hoc Analysis View',&lt;/P&gt;&lt;P&gt;'Ad Hoc Analysis View'[Company],&lt;/P&gt;&lt;P&gt;"x_per_company",&lt;/P&gt;&lt;P&gt;CALCULATE( [_Sales YA ORG],&lt;/P&gt;&lt;P&gt;ALL(Company[Company], Company[Brand],Company[Sub Brand], Company[Variant]),&lt;/P&gt;&lt;P&gt;ALLSELECTED(Period[Period]),&lt;/P&gt;&lt;P&gt;ALLSELECTED('Market Brkdown'[Country]),&lt;/P&gt;&lt;P&gt;ALLSELECTED('Organic Claim'[Organic Claim]),&lt;/P&gt;&lt;P&gt;VALUES('W Segment'[W Segment]),&lt;/P&gt;&lt;P&gt;VALUES('Market Brkdown'[Hier Level Name]),&lt;/P&gt;&lt;P&gt;VALUES('Ad Hoc Analysis View'[Category]),&lt;/P&gt;&lt;P&gt;VALUES('Ad Hoc Analysis View'[Segment])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;), [x_per_company]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I obtain this table, with summarized values that are different from what I expect:&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestion? Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 15:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-group-by-company-in-a-table/m-p/3767001#M147073</guid>
      <dc:creator>MarcoT</dc:creator>
      <dc:date>2024-03-15T15:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX SUMMARIZE group by company in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-group-by-company-in-a-table/m-p/3767326#M147104</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 17:44:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-group-by-company-in-a-table/m-p/3767326#M147104</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-15T17:44:22Z</dc:date>
    </item>
  </channel>
</rss>

