<?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 and Store Rolling Total in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2799676#M88054</link>
    <description>&lt;P&gt;Works like a charm, thank you for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 11:48:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-27T11:48:00Z</dc:date>
    <item>
      <title>Calculate and Store Rolling Total in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2797314#M87945</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to calculate a rolling sum over a 5 day time period and store that sum for each date in my table. I've created a sample data set that shows the relevant calculations in excel. I have tried to implement a rolling total using multiple online sources, but nothing seems to work. I have successfully created the 'All Lots [lbs]' column to total the smaller values, but cannot figure out the rolling sum. Due to other calculation constraints, I must do this calculation with DAX, not PowerQuery M. I would greatly appreciate any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(*) is used here as a placeholder, nothing more.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 16:59:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2797314#M87945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T16:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and Store Rolling Total in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2798438#M87996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create 2 columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;all lots = 'Table'[Lot 1]+'Table'[Lot 2]+'Table'[Lot 3]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;5 day rolling total =
VAR _5day = 'Table'[date] + 4
RETURN
    CALCULATE (
        SUM ( 'Table'[all lots] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[date] &amp;lt;= _5day
                &amp;amp;&amp;amp; 'Table'[date] &amp;gt;= EARLIER ( 'Table'[date] )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&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>Tue, 27 Sep 2022 03:29:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2798438#M87996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-27T03:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and Store Rolling Total in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2799676#M88054</link>
      <description>&lt;P&gt;Works like a charm, thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 11:48:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-Store-Rolling-Total-in-DAX/m-p/2799676#M88054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-27T11:48:00Z</dc:date>
    </item>
  </channel>
</rss>

