<?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: WEEKNUM - Every 10th week is 6 digits in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1018527#M13136</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195772" data-lia-user-login="kjssdca" class="lia-mention lia-mention-user"&gt;kjssdca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;D = ADDCOLUMNS(CALENDAR(TODAY()-180; TODAY()); "Year"; FORMAT([Date]; "yyyy"); "Month"; FORMAT([Date]; "mmm"); "Week"; WEEKNUM([Date]; 1))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I reproduced your code and I think the weeknum function inside function makes the return wrong. Try this code without format the week.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ricardo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 Apr 2020 00:09:47 GMT</pubDate>
    <dc:creator>camargos88</dc:creator>
    <dc:date>2020-04-10T00:09:47Z</dc:date>
    <item>
      <title>WEEKNUM - Every 10th week is 6 digits</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1018494#M13133</link>
      <description>&lt;P&gt;Created a Dates table that includes a column for Week Number using DAX WEEKNUM function. Most of the data is correct, however for some reason every 10th week is showing up as 6-digit numbers that increment for each day of that week. This is the case for week numbers 10, 20, 30, 40 and 50. In example below, 143527 is Sunday, 143528 is Monday, etc. of week number 10. I tried changing data format for Week column from Text to Whole Number and even deleted and re-created the table, but still having the issue. Does anyone know how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 23:13:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1018494#M13133</guid>
      <dc:creator>kjssdca</dc:creator>
      <dc:date>2020-04-09T23:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: WEEKNUM - Every 10th week is 6 digits</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1018527#M13136</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195772" data-lia-user-login="kjssdca" class="lia-mention lia-mention-user"&gt;kjssdca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;D = ADDCOLUMNS(CALENDAR(TODAY()-180; TODAY()); "Year"; FORMAT([Date]; "yyyy"); "Month"; FORMAT([Date]; "mmm"); "Week"; WEEKNUM([Date]; 1))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I reproduced your code and I think the weeknum function inside function makes the return wrong. Try this code without format the week.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ricardo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Apr 2020 00:09:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1018527#M13136</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-04-10T00:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: WEEKNUM - Every 10th week is 6 digits</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1019260#M13141</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195772" data-lia-user-login="kjssdca" class="lia-mention lia-mention-user"&gt;kjssdca&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Do not use format in that column. You only need Weeknum([Date],1)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 08:59:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1019260#M13141</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-04-10T08:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: WEEKNUM - Every 10th week is 6 digits</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1020263#M13171</link>
      <description>&lt;P&gt;Okay, removing FORMAT worked - Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:17:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1020263#M13171</guid>
      <dc:creator>kjssdca</dc:creator>
      <dc:date>2020-04-10T20:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: WEEKNUM - Every 10th week is 6 digits</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1020446#M13179</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195772" data-lia-user-login="kjssdca" class="lia-mention lia-mention-user"&gt;kjssdca&lt;/a&gt; , Please mark the solution&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 03:38:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WEEKNUM-Every-10th-week-is-6-digits/m-p/1020446#M13179</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-04-11T03:38:09Z</dc:date>
    </item>
  </channel>
</rss>

