<?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: Slow calculate column measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307661#M57230</link>
    <description>&lt;P&gt;I'm in the power pivot and have about 7 000 rows and when wrote the measure I'm waiting and waiting....:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 12:44:25 GMT</pubDate>
    <dc:creator>keny999</dc:creator>
    <dc:date>2022-01-28T12:44:25Z</dc:date>
    <item>
      <title>Slow calculate column measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307593#M57220</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i've got some measure that calculate cummulative of [Plan_Ilość], and it's in the calculate column but it is very slow, how can I do that it can be faster ?:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf0"&gt;=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf1"&gt;var&lt;/SPAN&gt; &lt;SPAN class="cf2"&gt;_Rok_mc&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt; = Plan_prod_TTL_etap_0[Rok_m-c_2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf1"&gt;var&lt;/SPAN&gt; &lt;SPAN class="cf2"&gt;_Kod&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt; = Plan_prod_TTL_etap_0[Kod_produktu]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf1"&gt;return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf1"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;SUM&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(Plan_prod_TTL_etap_0[Plan_Ilo&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;ść]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf1"&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf1"&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf0"&gt;Plan_prod_TTL_etap_0;&lt;/SPAN&gt;&lt;SPAN class="cf2"&gt;_Rok_mc&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;&amp;gt;=Plan_prod_TTL_etap_0[Rok_m-c_2]&lt;BR /&gt;&amp;amp;&amp;amp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="cf2"&gt;_Kod&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;=Plan_prod_TTL_etap_0[Kod_produktu])&lt;BR /&gt;);Plan_prod_TTL_etap_0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!-- EndFragment  --&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 12:08:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307593#M57220</guid>
      <dc:creator>keny999</dc:creator>
      <dc:date>2022-01-28T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slow calculate column measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307604#M57222</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;For running total I recommend this pattern:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Period RT = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;MaxDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Cumulativetotal[Value]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Calendar example'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MaxDate&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;) ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Also check this article by SQLBI about the topic:&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/computing-running-totals-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/computing-running-totals-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 12:19:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307604#M57222</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-28T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slow calculate column measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307617#M57224</link>
      <description>&lt;P&gt;Still very slow, nothing change and how can I put two or more conditions ?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 12:28:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307617#M57224</guid>
      <dc:creator>keny999</dc:creator>
      <dc:date>2022-01-28T12:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slow calculate column measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307653#M57228</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;If the calculation is still very slow I suspect that the problem lies elsewhere. There are multiple way to optimize a model and it is hard to explain them here. For now I recommend checking your visuals using the built in&amp;nbsp; report analyzer or using tool like DAX studio or BPA analyzer in tabular editor.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 12:41:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307653#M57228</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-28T12:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Slow calculate column measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307661#M57230</link>
      <description>&lt;P&gt;I'm in the power pivot and have about 7 000 rows and when wrote the measure I'm waiting and waiting....:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 12:44:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2307661#M57230</guid>
      <dc:creator>keny999</dc:creator>
      <dc:date>2022-01-28T12:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Slow calculate column measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2318760#M57865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339618" data-lia-user-login="keny999" class="lia-mention lia-mention-user"&gt;keny999&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that your large amount of data and the complexity of the model are causing the calculated column to run slowly, please try to optimize the model.&amp;nbsp;&lt;A href="https://docs.microsoft.com/power-bi/guidance/import-modeling-data-reduction" target="_self"&gt;Data reduction techniques for Import modeling&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, according to &lt;A href="https://docs.microsoft.com/power-bi/guidance/import-modeling-data-reduction#preference-for-custom-columns" target="_self"&gt;the documentation&lt;/A&gt;, it is recommended that you create custom columns in Power Query&amp;nbsp;(defined in M) instead of using DAX to create calculated columns, which will improve compression efficiency and reduce refresh time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Winniz&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 01:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-calculate-column-measure/m-p/2318760#M57865</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-02-04T01:42:10Z</dc:date>
    </item>
  </channel>
</rss>

