<?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: How to Group By with several columns? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098017#M47841</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sat, 25 Sep 2021 11:34:19 GMT</pubDate>
    <dc:creator>Jos_Woolley</dc:creator>
    <dc:date>2021-09-25T11:34:19Z</dc:date>
    <item>
      <title>How to Group By with several columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2097120#M47803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple table with 3 columns as shown in the attached picture:&lt;/P&gt;&lt;P&gt;- I tried to use Group By (in Query Editor) and could get the results in the column&amp;nbsp;&lt;STRONG&gt;F&lt;/STRONG&gt;, but not &lt;STRONG&gt;G&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:07:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2097120#M47803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-24T13:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Group By with several columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2097369#M47806</link>
      <description>&lt;P&gt;For number of product, we should use COUNT function and for Number of Cancelled Product, you can use SUM function.&lt;/P&gt;&lt;P&gt;If expressed in DAX, the table can be made as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;=========================&lt;BR /&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; OrderTable, &lt;SPAN&gt;OrderTable[OrderNumber]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"TotNumberOfProduct"&lt;/SPAN&gt;, &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;OrderTable[OrderNumber]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"NumberOfCancellation"&lt;/SPAN&gt;, &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;OrderTable[Cancel]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 15:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2097369#M47806</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-09-24T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Group By with several columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098000#M47839</link>
      <description>&lt;P&gt;Thank you for a fast answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this solution and got a new table with the result i wanted - Awesome!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, if i want to transform/make my existing table to look like the new table then i have to do it in the query editor (with M language), isnt it?&lt;/P&gt;&lt;P&gt;Creating an additional table is abit messy right now , since i have too many tables and I am starting to loose track of them :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 09:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098000#M47839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-25T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Group By with several columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098017#M47841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 11:34:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098017#M47841</guid>
      <dc:creator>Jos_Woolley</dc:creator>
      <dc:date>2021-09-25T11:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Group By with several columns?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098155#M47856</link>
      <description>&lt;P&gt;Probably.. Because DAX makes new table using other data table(s). (in this case, the first table)&lt;/P&gt;&lt;P&gt;However, if the first table is also made from some other raw data, you can skip the first table and make the 2nd table using the raw data. Of cuase, you need different DAX code for it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 20:11:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Group-By-with-several-columns/m-p/2098155#M47856</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-09-25T20:11:56Z</dc:date>
    </item>
  </channel>
</rss>

