<?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 - Week Number - to start from 1st Jan in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2473231#M67448</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Excellent,&lt;/SPAN&gt;&lt;SPAN&gt; Thanks alot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2022 12:36:37 GMT</pubDate>
    <dc:creator>ElMeSaFeR</dc:creator>
    <dc:date>2022-04-24T12:36:37Z</dc:date>
    <item>
      <title>DAX - Week Number - to start from 1st Jan</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2472866#M67403</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I've used CALENDAR() in a new table and I've obtained a date column, I'd like to calculate a new column with DAX to obtain the week number ( 1 - 54 ), but with the following condition:&lt;/P&gt;&lt;P&gt;1) The first week of the year should be the &lt;STRONG&gt;1st January for every year&lt;/STRONG&gt;.&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;&lt;P&gt;I've read similar posts and tried to apply and modify the DAX code to acheive that, but I haven't succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 19:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2472866#M67403</guid>
      <dc:creator>ElMeSaFeR</dc:creator>
      <dc:date>2022-04-23T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Week Number - to start from 1st Jan</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2473216#M67444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="325463" data-lia-user-login="ElMeSaFeR" class="lia-mention lia-mention-user"&gt;ElMeSaFeR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the DAX that was used to create the calculated column:&lt;/P&gt;&lt;PRE&gt;WeekNumber = 
ROUNDDOWN (
    ( ( RANKX ( 
        FILTER ( 
            'date', 
            'date'[Year] = EARLIER ( 'date'[Year] )
        ),
        'date'[Dates],
        , ASC
        , DENSE
    ) + 6 ) ) / 7, 0 )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 11:44:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2473216#M67444</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-04-24T11:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Week Number - to start from 1st Jan</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2473231#M67448</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Excellent,&lt;/SPAN&gt;&lt;SPAN&gt; Thanks alot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 12:36:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Week-Number-to-start-from-1st-Jan/m-p/2473231#M67448</guid>
      <dc:creator>ElMeSaFeR</dc:creator>
      <dc:date>2022-04-24T12:36:37Z</dc:date>
    </item>
  </channel>
</rss>

