<?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: Week number count from a month other than January. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042888#M155061</link>
    <description>&lt;PRE class="" data-stringify-type="pre"&gt;Fiscal Week Num =
VAR _FiscalWeekStart = 27  --- Put Your Desire Week Number from Where you want to Start from the Calender Week Number 
RETURN
    IF (
        DatesTable[Calendar Week Number] &amp;gt;= _FiscalWeekStart,
        ( DatesTable[Calendar Week Number] ) - ( _FiscalWeekStart - 1 ),
        52 + ( DatesTable[Calendar Week Number] ) - ( _FiscalWeekStart - 1 )
    )&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jan 2023 14:22:27 GMT</pubDate>
    <dc:creator>mh2587</dc:creator>
    <dc:date>2023-01-25T14:22:27Z</dc:date>
    <item>
      <title>Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042801#M155058</link>
      <description>&lt;P&gt;I have a year column&amp;nbsp; and a week number column. I would like to have a week number column in which count starts from April instead of January. So 1st of April will be value 1 and end of march will be 52 or 53.&lt;/P&gt;&lt;P&gt;Can you help please. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 13:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042801#M155058</guid>
      <dc:creator>Newrr</dc:creator>
      <dc:date>2023-01-25T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042843#M155059</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;I remember doing this in a project a while ago, do you have a date column with full date or just a year and week number column?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042843#M155059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T14:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042870#M155060</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;week number = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]) &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]) + (&lt;/SPAN&gt;&lt;SPAN&gt;52&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]), &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]) - &lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]), &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)) + &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This should work if you have a date column. Try it out, if you don't have a date column then it might be difficult, as April 1st isn't a set number of weeks away from Jan 1st so causes issues with the logic.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:18:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042870#M155060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042888#M155061</link>
      <description>&lt;PRE class="" data-stringify-type="pre"&gt;Fiscal Week Num =
VAR _FiscalWeekStart = 27  --- Put Your Desire Week Number from Where you want to Start from the Calender Week Number 
RETURN
    IF (
        DatesTable[Calendar Week Number] &amp;gt;= _FiscalWeekStart,
        ( DatesTable[Calendar Week Number] ) - ( _FiscalWeekStart - 1 ),
        52 + ( DatesTable[Calendar Week Number] ) - ( _FiscalWeekStart - 1 )
    )&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042888#M155061</guid>
      <dc:creator>mh2587</dc:creator>
      <dc:date>2023-01-25T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042937#M155062</link>
      <description>&lt;P&gt;I think there is a problem where if you use this, because you are going off the week number. The week number where April 1st starts is different when a leap year occurs. I think using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;week number = IF(MONTH('Calendar'[Date]) &amp;lt; 4,
WEEKNUM('Calendar'[Date]) + (52 - WEEKNUM(DATE(YEAR('Calendar'[Date]), 4, 1))),
WEEKNUM('Calendar'[Date]) - WEEKNUM(DATE(YEAR('Calendar'[Date]), 4, 1)) + 1)&lt;/LI-CODE&gt;&lt;P&gt;will get around this problem&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3042937#M155062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T14:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043135#M155063</link>
      <description>&lt;P&gt;Just have year and week number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I didn't mean to accept your solution because you didn't offer one yet &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:37:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043135#M155063</guid>
      <dc:creator>Newrr</dc:creator>
      <dc:date>2023-01-25T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043147#M155064</link>
      <description>&lt;P&gt;Thanks for your response. What if it is not necessarily for fiscal year. I mean how do I do if the count is to start for any other month, November for example?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:41:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043147#M155064</guid>
      <dc:creator>Newrr</dc:creator>
      <dc:date>2023-01-25T15:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043164#M155065</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313046" data-lia-user-login="mh2587" class="lia-mention lia-mention-user"&gt;mh2587&lt;/a&gt;&amp;nbsp;@Unfortunately I don't have a datetable, just week number and Year&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043164#M155065</guid>
      <dc:creator>Newrr</dc:creator>
      <dc:date>2023-01-25T15:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043171#M155066</link>
      <description>&lt;P&gt;No Problem, my friend! I think this will not be possible without a date column. There are some ways of loosely doing this but over a period of 2 or more years most of the "quick fix" methods are going to be wrong quite quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, 1st of April usually starts 12 (and 6 days) weeks after Jan first, so you could just add 12 to the week number then wrap it around when it gets to 52. But on a leap year, it's 13 weeks so the data will start to be incorrect by a day as the years go on. There are also a multitude of other issues but this is just an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Difficult to do this without a full date column. I will have a think as the day goes on but hopefully someone else comes up with an idea. Good luck, i'll pm you or message you here if i think of something&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043171#M155066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T15:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043584#M155067</link>
      <description>&lt;P&gt;&amp;nbsp;thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; for your response. Unfortunately I don't have a calendar table, just week number year but month could be added. Would It help?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3043584#M155067</guid>
      <dc:creator>Newrr</dc:creator>
      <dc:date>2023-01-25T18:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Week number count from a month other than January.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3993711#M155068</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this and it worked.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;FY WK Num&lt;/FONT&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;'Calendar Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;)&amp;lt;&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;'Calendar Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;)+(&lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ENDOFYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;'Calendar Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;'Calendar Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;),&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;'Calendar Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;'Calendar Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;),&lt;FONT color="#FF6600"&gt;4&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;))+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Everything marked in Orange is to be changed according to your data. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(FY WK Num = Column name as desired)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Calendar Table'[Date] = Table name and date column&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;4 = Desired start month of the year&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;,1 (Only hilighted) = Week start day (in this case its sunday)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Nikhil&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jun 2024 16:28:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-count-from-a-month-other-than-January/m-p/3993711#M155068</guid>
      <dc:creator>Nikhil_A</dc:creator>
      <dc:date>2024-06-14T16:28:02Z</dc:date>
    </item>
  </channel>
</rss>

