<?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: Rolling sum between relative dates? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507262#M134548</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471693" data-lia-user-login="OhLookAnError" class="lia-mention lia-mention-user"&gt;OhLookAnError&lt;/a&gt;&amp;nbsp; possible solution as measure&lt;/P&gt;
&lt;P&gt;Running sum test =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM(tblSummary[Revenue]),&lt;BR /&gt;DATESINPERIOD (&lt;BR /&gt;'Date'[Date], --this column must be Calendar / Date table in Power BI&lt;BR /&gt;MAX ( 'Date'[Date] ),--this column must be Calendar / Date table in Power BI&lt;BR /&gt;-1, --change as needed&lt;BR /&gt;YEAR --period could Day, Month, Quarter, Year&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 13:31:02 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-10-31T13:31:02Z</dc:date>
    <item>
      <title>Rolling sum between relative dates?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3504832#M134457</link>
      <description>&lt;P&gt;Hello! I am trying to get a rolling sum between two dates. Normally I would use something like the statement below to just get for example the last 365 days:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue Prior 365 Days= Calculate(SUM(tblSummary[Revenue]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATESINPERIOD(tblSummary[ReportDate],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LASTDATE(tblSummary[ReportDate]),-7,DAY))&lt;/P&gt;&lt;P&gt;But, now I need to get a rolling sum for prior 365 before the current prior 365 days... if that makes sense.... Just not sure how to work a second filter in there so that i can get a rolling date period where one of the dates isnt just the last date in the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 14:35:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3504832#M134457</guid>
      <dc:creator>OhLookAnError</dc:creator>
      <dc:date>2023-10-30T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling sum between relative dates?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3506543#M134522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471693" data-lia-user-login="OhLookAnError" class="lia-mention lia-mention-user"&gt;OhLookAnError&lt;/a&gt;&amp;nbsp;please describe "how" you model you inputs for this wanted output, like do you use slicer of you just want measure depending on ...is 365 fixed all time or this is just year...if possible share model to better understand your model&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 08:00:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3506543#M134522</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-10-31T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling sum between relative dates?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507147#M134544</link>
      <description>&lt;P&gt;Hi, it is just going in a table. So for example, the first column would show the sum of the last 90 days and the next column would show the sum of the 90 days before that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 12:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507147#M134544</guid>
      <dc:creator>OhLookAnError</dc:creator>
      <dc:date>2023-10-31T12:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling sum between relative dates?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507237#M134547</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471693" data-lia-user-login="OhLookAnError" class="lia-mention lia-mention-user"&gt;OhLookAnError&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471693" data-lia-user-login="OhLookAnError" class="lia-mention lia-mention-user"&gt;OhLookAnError&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try below&amp;nbsp;&lt;/P&gt;&lt;P&gt;just adjust your column name&lt;/P&gt;&lt;P&gt;rolling sum for 90 days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;365 Days =
Calculate(
    SUM(tblSummary[Revenue]),
      tblSummary[ReportDate]&amp;gt; max(tblSummary[ReportDate])-90 &amp;amp;&amp;amp;
            tblSummary[ReportDate]&amp;lt;=max(tblSummary[ReportDate]
          )


&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rolling sum for 365 days&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;365 Days =
Calculate(
    SUM(tblSummary[Revenue]),
      tblSummary[ReportDate]&amp;gt; max(tblSummary[ReportDate])-365 &amp;amp;&amp;amp;
            tblSummary[ReportDate]&amp;lt;=max(tblSummary[ReportDate]
          )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:41:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507237#M134547</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-31T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling sum between relative dates?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507262#M134548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471693" data-lia-user-login="OhLookAnError" class="lia-mention lia-mention-user"&gt;OhLookAnError&lt;/a&gt;&amp;nbsp; possible solution as measure&lt;/P&gt;
&lt;P&gt;Running sum test =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM(tblSummary[Revenue]),&lt;BR /&gt;DATESINPERIOD (&lt;BR /&gt;'Date'[Date], --this column must be Calendar / Date table in Power BI&lt;BR /&gt;MAX ( 'Date'[Date] ),--this column must be Calendar / Date table in Power BI&lt;BR /&gt;-1, --change as needed&lt;BR /&gt;YEAR --period could Day, Month, Quarter, Year&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3507262#M134548</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-10-31T13:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling sum between relative dates?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3535414#M135853</link>
      <description>&lt;P&gt;I got this below to work but is there a way to do it in months instead of days?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PreviousPeriod = &lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('tbl'[Revenue]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DATESBETWEEN&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]) - &lt;/SPAN&gt;&lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]) -&lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Nov 2023 15:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-sum-between-relative-dates/m-p/3535414#M135853</guid>
      <dc:creator>OhLookAnError</dc:creator>
      <dc:date>2023-11-15T15:42:13Z</dc:date>
    </item>
  </channel>
</rss>

