<?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 Week Number in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133016#M164155</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801315" data-lia-user-login="Preetsingh86" class="lia-mention lia-mention-user"&gt;Preetsingh86&lt;/a&gt;&amp;nbsp;Hi! Try to adapt this new calculated column to your data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Financial Year =&lt;BR /&gt;IF(&lt;BR /&gt;MONTH([Date]) &amp;gt;= 9,&lt;BR /&gt;YEAR([Date]),&lt;BR /&gt;YEAR([Date]) - 1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Financial Week Number =&lt;BR /&gt;VAR StartOfYear =&lt;BR /&gt;DATE([Financial Year], 9, 1)&lt;/P&gt;&lt;P&gt;VAR WeekNumber =&lt;BR /&gt;WEEKNUM([Date] - StartOfYear + 1, 11)&lt;BR /&gt;RETURN&lt;BR /&gt;WeekNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 09:30:39 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2024-09-04T09:30:39Z</dc:date>
    <item>
      <title>Calculate Week Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133006#M164152</link>
      <description>&lt;P&gt;Hi, I am trying to calculate financial week number for the dates column. Our financial year starts from Sept - Aug, and our first day of work is Sunday. I have tried DAX measure WEEKNUM but not sure what returntype will be and then I presume I have to add additional formula to ensure my week starts from sunday&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 09:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133006#M164152</guid>
      <dc:creator>Preetsingh86</dc:creator>
      <dc:date>2024-09-04T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Week Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133016#M164155</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="801315" data-lia-user-login="Preetsingh86" class="lia-mention lia-mention-user"&gt;Preetsingh86&lt;/a&gt;&amp;nbsp;Hi! Try to adapt this new calculated column to your data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Financial Year =&lt;BR /&gt;IF(&lt;BR /&gt;MONTH([Date]) &amp;gt;= 9,&lt;BR /&gt;YEAR([Date]),&lt;BR /&gt;YEAR([Date]) - 1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Financial Week Number =&lt;BR /&gt;VAR StartOfYear =&lt;BR /&gt;DATE([Financial Year], 9, 1)&lt;/P&gt;&lt;P&gt;VAR WeekNumber =&lt;BR /&gt;WEEKNUM([Date] - StartOfYear + 1, 11)&lt;BR /&gt;RETURN&lt;BR /&gt;WeekNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 09:30:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133016#M164155</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-09-04T09:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Week Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133109#M164158</link>
      <description>&lt;P&gt;It worked, thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 10:20:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Week-Number/m-p/4133109#M164158</guid>
      <dc:creator>Preetsingh86</dc:creator>
      <dc:date>2024-09-04T10:20:19Z</dc:date>
    </item>
  </channel>
</rss>

