<?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: Help in calculating a column for runrate! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2722729#M83097</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, I have modified this table to include funders and since there are multiple periods as each funder will have P1- 13 values, I cannot figure a workaround. The funder is an important slicer for my dashboard, hence needed to add it.. I posted it here, if you have time , would appreciate if you can have a look. :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Run-Rate-without-Dates-but-by-periods-and-with-a-slicer-for/m-p/2721207" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Run-Rate-without-Dates-but-by-periods-and-with-a-slicer-for/m-p/2721207&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 09:22:12 GMT</pubDate>
    <dc:creator>UrAvgWally</dc:creator>
    <dc:date>2022-08-24T09:22:12Z</dc:date>
    <item>
      <title>Help in calculating a column for runrate!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2719983#M82901</link>
      <description>&lt;P&gt;I have the following Table let us say, Table1,&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;i am trying to calculate the runrate in the last column, logic is that I have another Table , let us say Setup. So the Setup table has a column CP, which states the current period "5".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the last column for all periods upto P5&amp;nbsp;(based on the Setup[CP] value) , be equal to the value column in the table1&amp;nbsp; , and P6 to P13 onwards the be the runrate which is sum of Period 1- Period 5, divided by 5 (Which is based on Setup[CP] value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to do it this way? Any help would be appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:59:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2719983#M82901</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-23T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help in calculating a column for runrate!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720445#M82936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426650" data-lia-user-login="UrAvgWally" class="lia-mention lia-mention-user"&gt;UrAvgWally&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;RunRate =
VAR RefPeriod =
    MAX ( Setup[CP] )
VAR CurrentValue = Table1[Value]
VAR FilteredTable =
    FILTER ( Table1, Table1[PeriodNo] &amp;lt;= RefPeriod )
VAR RunRate =
    AVERAGEX ( FilteredTable, Table1[Value] )
RETURN
    IF ( CurrentValue &amp;lt;= RefPeriod, CurrentValue, RunRate )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:35:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720445#M82936</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-23T13:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help in calculating a column for runrate!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720495#M82940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for getting back to me!&lt;/P&gt;&lt;P&gt;Unfortunately not getting desired results .I was hoping Period 1 to 5, would match the value column, and 6-13 would be runrate:&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:52:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720495#M82940</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-23T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help in calculating a column for runrate!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720531#M82941</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426650" data-lia-user-login="UrAvgWally" class="lia-mention lia-mention-user"&gt;UrAvgWally&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apologies, that was my mistake&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;RunRate =
VAR RefPeriod =
    MAX ( Setup[CP] )
VAR CurrentPeriod = Table1[PeriodNo]
VAR CurrentValue = Table1[Value]
VAR FilteredTable =
    FILTER ( Table1, Table1[PeriodNo] &amp;lt;= RefPeriod )
VAR RunRate =
    AVERAGEX ( FilteredTable, Table1[Value] )
RETURN
    IF ( CurrentPeriod &amp;lt;= RefPeriod, CurrentValue, RunRate )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720531#M82941</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-23T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help in calculating a column for runrate!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720741#M82957</link>
      <description>&lt;P&gt;Thanks, worked perfectly :).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2720741#M82957</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-23T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help in calculating a column for runrate!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2722729#M83097</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, I have modified this table to include funders and since there are multiple periods as each funder will have P1- 13 values, I cannot figure a workaround. The funder is an important slicer for my dashboard, hence needed to add it.. I posted it here, if you have time , would appreciate if you can have a look. :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Run-Rate-without-Dates-but-by-periods-and-with-a-slicer-for/m-p/2721207" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Run-Rate-without-Dates-but-by-periods-and-with-a-slicer-for/m-p/2721207&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 09:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-in-calculating-a-column-for-runrate/m-p/2722729#M83097</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-24T09:22:12Z</dc:date>
    </item>
  </channel>
</rss>

