<?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: Performance problem with measure in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1783264#M28965</link>
    <description>&lt;P&gt;Please provide sample data in usable format (not as a picture).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you considered using DAX Studio to evaluate the performance of your measure query?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 23:38:36 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-04-13T23:38:36Z</dc:date>
    <item>
      <title>Performance problem with measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1778602#M28891</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get a measure working to get information about the average cumulative duration of sorted data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following two tables are used:&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucmax_2-1618161091408.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/492538iE6E6F53FF3E27275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucmax_2-1618161091408.png" alt="lucmax_2-1618161091408.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cases:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucmax_1-1618160842358.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/492537i2CC5ED10A5A8741B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucmax_1-1618160842358.png" alt="lucmax_1-1618160842358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected result in a matrix:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucmax_3-1618161219158.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/492539i34D02FF252105563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucmax_3-1618161219158.png" alt="lucmax_3-1618161219158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucmax_5-1618161505017.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/492544i9C71BF4396D936D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucmax_5-1618161505017.png" alt="lucmax_5-1618161505017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine with the following when DurationAtStart is the following measure until I work with a big dataset:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DurationAtStart = 
VAR auxT_ =
    ADDCOLUMNS (
        Log,
        "ValueSum_",
            CALCULATE (
                SUM ( Log[duration] ),
                Log[event_number] &amp;lt;= EARLIER ( Log[event_number] ) - 1,
                ALLEXCEPT ( Log, Log[id] )
            )
    )
RETURN
    AVERAGEX ( auxT_, [ValueSum_] )&lt;/LI-CODE&gt;&lt;P&gt;Do you any tips on how I can change the measure so everything works faster? Right now on a bigger dataset it stops calculating because the memory limit will get reached. I don't want to pre calculate everything unless it really is the last option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Lucmax&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 17:19:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1778602#M28891</guid>
      <dc:creator>lucmax</dc:creator>
      <dc:date>2021-04-11T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1783264#M28965</link>
      <description>&lt;P&gt;Please provide sample data in usable format (not as a picture).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you considered using DAX Studio to evaluate the performance of your measure query?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 23:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1783264#M28965</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-04-13T23:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1786078#M29005</link>
      <description>&lt;P&gt;You can refer to this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://maqsoftware.com/expertise/powerbi/dax-best-practices" target="_self"&gt;https://maqsoftware.com/expertise/powerbi/dax-best-practices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 06:46:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Performance-problem-with-measure/m-p/1786078#M29005</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-04-15T06:46:18Z</dc:date>
    </item>
  </channel>
</rss>

