<?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 Historical vs future data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331242#M58589</link>
    <description>&lt;P&gt;I have a list of events with future information. I am looking at 7 days rolling calendar. I want to add a column that looks at the historal average for those events so i can see if our projected is on par with historcal .&lt;/P&gt;&lt;P&gt;&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;</description>
    <pubDate>Thu, 10 Feb 2022 15:21:46 GMT</pubDate>
    <dc:creator>mmowrey</dc:creator>
    <dc:date>2022-02-10T15:21:46Z</dc:date>
    <item>
      <title>Historical vs future data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331242#M58589</link>
      <description>&lt;P&gt;I have a list of events with future information. I am looking at 7 days rolling calendar. I want to add a column that looks at the historal average for those events so i can see if our projected is on par with historcal .&lt;/P&gt;&lt;P&gt;&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;</description>
      <pubDate>Thu, 10 Feb 2022 15:21:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331242#M58589</guid>
      <dc:creator>mmowrey</dc:creator>
      <dc:date>2022-02-10T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Historical vs future data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331506#M58602</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357454" data-lia-user-login="mmowrey" class="lia-mention lia-mention-user"&gt;mmowrey&lt;/a&gt; , You can use relative date slicer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a column in date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;Date Type = SWITCH(TRUE(),'Date'[Date]&amp;lt;=TODAY() &amp;amp;&amp;amp; 'Date'[Date]&amp;gt;=TODAY() -7,"Last 7 days"&lt;BR /&gt;,'Date'[Date]&amp;amp;"")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or for next 7 days&lt;/P&gt;
&lt;P&gt;Date Type = SWITCH(TRUE(),'Date'[Date]&amp;gt;=TODAY() &amp;amp;&amp;amp; 'Date'[Date]&amp;lt;=TODAY() +7,"Next 7 days"&lt;BR /&gt;,'Date'[Date]&amp;amp;"")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or rolling 7 formula&lt;/P&gt;
&lt;P&gt;new measure =&lt;/P&gt;
&lt;P&gt;CALCULATE(countrows(Table),DATESINPERIOD('Date'[Date],max('Date'[Date]),-7,DAY))&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 17:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331506#M58602</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-10T17:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Historical vs future data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331549#M58607</link>
      <description>&lt;P&gt;does this work if i have a date slice looking 7 days ahead but i want my column to look back 365 days for average.. I don't want that historical column running off the 7 day ahead slicer..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 18:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2331549#M58607</guid>
      <dc:creator>mmowrey</dc:creator>
      <dc:date>2022-02-10T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Historical vs future data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2338767#M58969</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357454" data-lia-user-login="mmowrey" class="lia-mention lia-mention-user"&gt;mmowrey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide a simple PBIX file for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-vs-future-data/m-p/2338767#M58969</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-02-15T07:08:16Z</dc:date>
    </item>
  </channel>
</rss>

