<?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: Calculate Run Rate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3455373#M131707</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample to have a test. I suggest you to create a Calendar table to help your calculation.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = ADDCOLUMNS(CALENDARAUTO(),"Year",YEAR([Date]),"Month",MONTH([Date]),"MonthShortName",FORMAT([Date],"MMM"))&lt;/LI-CODE&gt;
&lt;P&gt;Data model:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net Sales = CALCULATE(sum('Table'[Value]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Running Rate = 
VAR _LASTMONTH =
    CALCULATE (
        MAX ( Calendar[Month] ),
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Year] = MAX ( 'Calendar'[Year] )
                &amp;amp;&amp;amp; [Net Sales] &amp;lt;&amp;gt; 0
        )
    )
VAR _Total =
    CALCULATE ( [Net Sales], ALLEXCEPT ( 'Calendar', 'Calendar'[Year] ) )
RETURN
    DIVIDE ( _Total, _LASTMONTH ) * 12&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 03:41:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-02T03:41:16Z</dc:date>
    <item>
      <title>Calculate Run Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3451338#M131482</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know how to write a DAX for Run Rate = ( Total Net Sales/9 month)*12 in power BI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like the date is automate means if going oct so the total run rate will calculate (total net sales/10month)*12.&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>Thu, 28 Sep 2023 08:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3451338#M131482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-28T08:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Run Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3451342#M131483</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Use of function average or averagex should work in this case. Otherwise provide data in tabular form.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 08:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3451342#M131483</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-28T08:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Run Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3455373#M131707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I create a sample to have a test. I suggest you to create a Calendar table to help your calculation.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = ADDCOLUMNS(CALENDARAUTO(),"Year",YEAR([Date]),"Month",MONTH([Date]),"MonthShortName",FORMAT([Date],"MMM"))&lt;/LI-CODE&gt;
&lt;P&gt;Data model:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net Sales = CALCULATE(sum('Table'[Value]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Running Rate = 
VAR _LASTMONTH =
    CALCULATE (
        MAX ( Calendar[Month] ),
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Year] = MAX ( 'Calendar'[Year] )
                &amp;amp;&amp;amp; [Net Sales] &amp;lt;&amp;gt; 0
        )
    )
VAR _Total =
    CALCULATE ( [Net Sales], ALLEXCEPT ( 'Calendar', 'Calendar'[Year] ) )
RETURN
    DIVIDE ( _Total, _LASTMONTH ) * 12&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 03:41:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3455373#M131707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-02T03:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Run Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3592047#M138700</link>
      <description>&lt;P&gt;Hi, I need the same but for month&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;in excel I have the formula&lt;/P&gt;&lt;P&gt;%compliance/daysworked*days of the month&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;in excel I have the formula
% compliance/days worked*days of the month&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I try to do the same in power bi but is not working.&lt;/P&gt;&lt;P&gt;Can you help me please.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 17:42:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Run-Rate/m-p/3592047#M138700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-19T17:42:33Z</dc:date>
    </item>
  </channel>
</rss>

