<?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: Calculating rolling revenue numbers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/794410#M4642</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would certainly help if you showed your data.&amp;nbsp;Please have a look at &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_self"&gt;&lt;FONT color="#0000FF"&gt;these tips&lt;/FONT&gt;&lt;/A&gt; for getting your question answered quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have months on the axis of your chart, you can use a measure along these lines if you have a calendar table (preferable):&lt;/P&gt;
&lt;PRE&gt;Measure =
CALCULATE (
    SUM ( Table1[Revenue] ),
    FILTER (
        ALL ( CalendarTable[Month] ),
        CalendarTable[Month] &amp;lt;= MAX ( CalendarTable[Month] ) &amp;amp;&amp;amp; CalendarTable[Month] &amp;gt; (MAX ( CalendarTable[Month] ) -12 )
    )
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 11:41:20 GMT</pubDate>
    <dc:creator>AlB</dc:creator>
    <dc:date>2019-09-17T11:41:20Z</dc:date>
    <item>
      <title>Calculating rolling revenue numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/793631#M4628</link>
      <description>&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;I have to build a pretty tricky chart where I have to show revenue by month.&lt;/P&gt;&lt;P&gt;The challenge is that a&amp;nbsp;12 month rolling data point would be the current month plus the previous 11 months, the previous month data point would be the previous month plus the previous 11 months i.e. Aug 2019 would be Aug 2019 to Sept 2018, July 2019 would be July 2019 to Aug 2018, June 2019 would be June 2019 to July 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 20:02:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/793631#M4628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-16T20:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating rolling revenue numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/794401#M4640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using the below measure:&lt;/P&gt;&lt;PRE&gt;Total Revenue = SUM( Data[Revenue] )&lt;BR /&gt;&lt;BR /&gt;12 Month Rolling Revenue = CALCULATE(
[Total Revenue],DATESINPERIOD('Calendar'[date], 
MAX('Calendar'[date]),-12,MONTH)
)&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please accept this as a solution if it satisfies the requirement. Appreciate your Kudos. :)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/794401#M4640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T11:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating rolling revenue numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/794410#M4642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would certainly help if you showed your data.&amp;nbsp;Please have a look at &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_self"&gt;&lt;FONT color="#0000FF"&gt;these tips&lt;/FONT&gt;&lt;/A&gt; for getting your question answered quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have months on the axis of your chart, you can use a measure along these lines if you have a calendar table (preferable):&lt;/P&gt;
&lt;PRE&gt;Measure =
CALCULATE (
    SUM ( Table1[Revenue] ),
    FILTER (
        ALL ( CalendarTable[Month] ),
        CalendarTable[Month] &amp;lt;= MAX ( CalendarTable[Month] ) &amp;amp;&amp;amp; CalendarTable[Month] &amp;gt; (MAX ( CalendarTable[Month] ) -12 )
    )
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:41:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-rolling-revenue-numbers/m-p/794410#M4642</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-09-17T11:41:20Z</dc:date>
    </item>
  </channel>
</rss>

