<?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: Dax formula for caluclating last 5 week's sales average of previous year in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277352#M123735</link>
    <description>&lt;P&gt;Hey, can you please explain how you did define the timeframe for the 5 weeks last year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 23:19:41 GMT</pubDate>
    <dc:creator>TomMartens</dc:creator>
    <dc:date>2017-10-12T23:19:41Z</dc:date>
    <item>
      <title>Dax formula for caluclating last 5 week's sales average of previous year</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/268561#M121156</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to Dynamically calculate average sales for last 5 weeks last year , i.e&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current week = 40 and current year 2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;so I want&amp;nbsp;&lt;/P&gt;&lt;P&gt;last year&amp;nbsp; 5 weeks average = week 41(2016) to week37(2016)/ 5&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;same way every week I am able to dynamically caluclate average to compare with sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advice me&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 04:34:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/268561#M121156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-05T04:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for caluclating last 5 week's sales average of previous year</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/268634#M121169</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry, but I need a little more information how to calculate&amp;nbsp; the measure you require,&amp;nbsp;can you please explain how you "find" the timeframe of the 5 weeks for the last year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My assumption&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Your data model contains a separate calendar table&lt;/LI&gt;&lt;LI&gt;Based on the current week, determine the data of the EoW-Day (EoW = End of Week)&lt;/LI&gt;&lt;LI&gt;A = Determine the week of EoW-Day last year = 41&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;TF LY = B(A - 4) .. A = 37 .. 41 (TimeFrame Last Year = weeks 37 to 41 last year)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What is your expectation if the current week is the 2nd week of the year, would you expext, that the time frame&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;contains weeks (precisely days from 2 years ago)&lt;/LI&gt;&lt;LI&gt;contains just weeks (precisely complete weeks 7 days) from last year&lt;/LI&gt;&lt;LI&gt;contains just the days from the 1st of January Last year until EoW-Day Last Year&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is important information how to determine the measure&amp;nbsp; to calculates the average sales for the last 5 weeks last year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 05:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/268634#M121169</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2017-10-05T05:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for caluclating last 5 week's sales average of previous year</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277343#M123730</link>
      <description>&lt;P&gt;Sorry for late reply, In my model I don't have Date Table. Secondly, I did not calculate the time frame for last year 5 weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 22:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277343#M123730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T22:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for caluclating last 5 week's sales average of previous year</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277352#M123735</link>
      <description>&lt;P&gt;Hey, can you please explain how you did define the timeframe for the 5 weeks last year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 23:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277352#M123735</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2017-10-12T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formula for caluclating last 5 week's sales average of previous year</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277369#M123745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't last 5 weeks of the previous year be week36 to week40?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 00:14:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Dax-formula-for-caluclating-last-5-week-s-sales-average-of/m-p/277369#M123745</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2017-10-13T00:14:16Z</dc:date>
    </item>
  </channel>
</rss>

