<?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: Grouping data Performance - Query Editor vs DAX in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073016#M498121</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would handle modeling with Power Query.&lt;/P&gt;&lt;P&gt;If you do it using DAX, you are gonna have your original table on the model, with PQ it will reduce your amount of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you need to use this data for more than 1 report maybe it's better use DataFlow, with that only PQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&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;</description>
    <pubDate>Tue, 05 May 2020 13:45:16 GMT</pubDate>
    <dc:creator>camargos88</dc:creator>
    <dc:date>2020-05-05T13:45:16Z</dc:date>
    <item>
      <title>Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1072956#M498104</link>
      <description>&lt;P&gt;Hello Power BI Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to understand the difference in the performance based on column calculations done using DAX versus that done in Query Editor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's consider creating a summarised table using an existing table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt; - I can use GROUPBY function to do this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query Editor&lt;/STRONG&gt; - I can use Group By transformation to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, from performance point of you, where should this calculation sit in Power BI Desktop - Query Editor or DAX ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; &lt;/U&gt;I am dealing with huge volume of data. (~ 12 GB)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:30:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1072956#M498104</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-05-05T13:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1072992#M498116</link>
      <description>&lt;P&gt;I wouldn't necessarily classify 12 GB of data as huge. But regardless, you generally want to push transformations up the chain as far as possible. So if you can do it in the data source = best then Power Query and then DAX. There are always exceptions but that's generally the case.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:40:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1072992#M498116</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-05T13:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1072999#M498117</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we compare DAX and Query Editor, I would prefer the Query Editor.&lt;/P&gt;&lt;P&gt;It is better to use ETL tool to implement the same.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1072999#M498117</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-05T13:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073006#M498118</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;it depends on how you want to consume the info. GroupBy DAX doesn't need to have a separate table, it can be used in the DAX expression, with Power Query, of course, you will get a separate table. It all boils down the end result you are trying to get it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you say, you want separate column, and should you use DAX or Power Query, I would say PQ and with tweaking in Group BY function in PQ can be faster but I would like to add here, group by, merge, sorting, etc are very expensive queries in Power Query and given the size of the dataset, it is going to be super slow. I would recommend having it grouped at source if your source is a relational database like SQL Server etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All in all, it depends what is the need of grouping and that will dictate the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="direction: ltr; border-width: 100%;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 4.3743in;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 4.3743in;"&gt;
&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;I would &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Segoe UI Emoji';"&gt;❤&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-family: Calibri;"&gt;Kudos&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri;"&gt; if my solution helped. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Segoe UI Emoji';"&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri;"&gt; If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 May 2020 13:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073006#M498118</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2020-05-05T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073016#M498121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would handle modeling with Power Query.&lt;/P&gt;&lt;P&gt;If you do it using DAX, you are gonna have your original table on the model, with PQ it will reduce your amount of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you need to use this data for more than 1 report maybe it's better use DataFlow, with that only PQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&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;</description>
      <pubDate>Tue, 05 May 2020 13:45:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073016#M498121</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-05-05T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073062#M498132</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/507" target="_blank"&gt;@parry2k&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you for your quick response.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My requirement is to create few calucated columns at the client level. Now in my current file I have almost 7 million rows and some other columns related to customer sales.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When I try to use the EARLIER function to write a type of calculations at the client level, the dax formula takes a long time to finish. So, I thought I'd create group-level calculations on an individual customer. But this greatly increases the number of tables in my data model and greatly affects Power BI performance.&lt;/P&gt;&lt;P&gt;Therefore, my question was where it is best to put the group at the client level by calculations.&lt;/P&gt;&lt;P&gt;You may need to think about moving calculations in the database until there is no other way to handle them.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:11:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073062#M498132</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-05-05T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073074#M498137</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;why calculated columns? I use more than 100 million rows of data and with measures, I was able to achieve anything and these were complex measures. First, why you are adding a column? Also, look at &lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-aggregations" target="_self"&gt;aggregation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally feel grouping is not a solution in this case.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:07:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073074#M498137</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2020-05-05T14:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073082#M498140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be I am just thinking a lot and started creating columns. Looks like I should start creating measures rather than columns and see how it looks like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this suggestion. I will try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073082#M498140</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-05-05T14:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073084#M498141</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;sounds great. Good luck. Yeah, always put MEASURES first and every time you think of creating a column, ask yourself, why you need this? Cheers and good luck. Keep posted and let's know how it goes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:12:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1073084#M498141</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2020-05-05T14:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data Performance - Query Editor vs DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1074873#M498641</link>
      <description>&lt;P&gt;HI&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to transform and shape the data model, for example, remove unless columns or get a&amp;nbsp;summary table, etc. you could do it in power query, and this will reduce the size of dataset too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then if you want to keep raw data, you need to use DAX to create a calculate column or calculate measure. But I suggest you use a measure instead of column.&lt;/P&gt;
&lt;P&gt;See more details by this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lin&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 06:27:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-data-Performance-Query-Editor-vs-DAX/m-p/1074873#M498641</guid>
      <dc:creator>v-lili6-msft</dc:creator>
      <dc:date>2020-05-06T06:27:09Z</dc:date>
    </item>
  </channel>
</rss>

