<?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 Custom Fiscal Week Calculation - Calculated Column Preferred in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Fiscal-Week-Calculation-Calculated-Column-Preferred/m-p/2475068#M67548</link>
    <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom Date Table that takes into account my Fiscal Year ( Feb - Starting FY month).&amp;nbsp; It also has a fiscal week calculation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to take it a step further, and essentially make sure each week has full length period (Monday -Sunday).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example, where a fiscal week begins on a day that does not equal "Monday" such as February 1st 2022 (Tuesday) it needs to be pushed to the next week.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for cases such as above, where the full week is not recognized from Monday To Sunday - it needs to be rolled up into the next week until its showing only 1 week at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in Power Query ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 13:19:40 GMT</pubDate>
    <dc:creator>cdawidow2</dc:creator>
    <dc:date>2022-04-25T13:19:40Z</dc:date>
    <item>
      <title>Custom Fiscal Week Calculation - Calculated Column Preferred</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Fiscal-Week-Calculation-Calculated-Column-Preferred/m-p/2475068#M67548</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom Date Table that takes into account my Fiscal Year ( Feb - Starting FY month).&amp;nbsp; It also has a fiscal week calculation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to take it a step further, and essentially make sure each week has full length period (Monday -Sunday).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example, where a fiscal week begins on a day that does not equal "Monday" such as February 1st 2022 (Tuesday) it needs to be pushed to the next week.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for cases such as above, where the full week is not recognized from Monday To Sunday - it needs to be rolled up into the next week until its showing only 1 week at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in Power Query ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:19:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Fiscal-Week-Calculation-Calculated-Column-Preferred/m-p/2475068#M67548</guid>
      <dc:creator>cdawidow2</dc:creator>
      <dc:date>2022-04-25T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Fiscal Week Calculation - Calculated Column Preferred</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Fiscal-Week-Calculation-Calculated-Column-Preferred/m-p/2475578#M67578</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341706" data-lia-user-login="cdawidow2" class="lia-mention lia-mention-user"&gt;cdawidow2&lt;/a&gt; , check the dax solution &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FY Year =&amp;nbsp; if(month([Date]) &amp;lt;2, YEAR([Date]) -1, YEAR([Date]) )&lt;/P&gt;
&lt;P&gt;FY Start=&amp;nbsp; if(month([Date]) &amp;lt;2, Date(YEAR([Date]) -1,2,1) , date(YEAR([Date]),2,1)&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1&lt;BR /&gt;Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FY Week Start Year = minx(filter('Date',[FY Year] =earlier([FY Year]) &amp;amp;&amp;amp; [Week Start date] &amp;gt; [FY Start]&amp;nbsp; ),[Week Start date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FY Week = QUOTIENT(DATEDIFF([FY Week Start Year ],'Date'[Start of Week]),[Date],DAY),7)+1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 16:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Fiscal-Week-Calculation-Calculated-Column-Preferred/m-p/2475578#M67578</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-25T16:35:13Z</dc:date>
    </item>
  </channel>
</rss>

