<?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: Problem with week of year, week of year 1 in both 2024 and 2025 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4361041#M173122</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588595" data-lia-user-login="Jodallen123" class="lia-mention lia-mention-user"&gt;Jodallen123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forgive me for not fully understanding your question. Is this the result you expected?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 07:39:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-13T07:39:11Z</dc:date>
    <item>
      <title>Problem with week of year, week of year 1 in both 2024 and 2025</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4358435#M173023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a simple line graph with year/month name/week of year on the x-axis, the graph is set to show the last 2 months. The problem is that week 1 appears in both 2024 and 2025 and ends up at the start of december and at the start of january instead of at the end of december and the start of january.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated column like this: "&lt;SPAN&gt;UniqueYearWeek =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&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;100&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;2&lt;/SPAN&gt;&lt;SPAN&gt;) +&lt;/SPAN&gt;&lt;SPAN&gt;DAY&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;1000" and then tried to sort week of year by that column, but since each week of year appears multiple times, that does not work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I feel like this is a problem that more people probably have faced. How have you solved it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&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;</description>
      <pubDate>Fri, 10 Jan 2025 08:01:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4358435#M173023</guid>
      <dc:creator>Jodallen123</dc:creator>
      <dc:date>2025-01-10T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week of year, week of year 1 in both 2024 and 2025</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4358475#M173026</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588595" data-lia-user-login="Jodallen123" class="lia-mention lia-mention-user"&gt;Jodallen123&lt;/a&gt;&amp;nbsp;Hi! Try with:&lt;/P&gt;&lt;P&gt;AdjustedWeekYear =&lt;BR /&gt;VAR StartOfWeek = [Date] - WEEKDAY([Date], 2) + 1 // Start of the week (ISO standard)&lt;BR /&gt;VAR WeekYear = YEAR(StartOfWeek) // Year of the start of the week&lt;BR /&gt;RETURN WeekYear * 100 + WEEKNUM([Date], 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace the column used for sorting and x-axis ordering with this new.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 08:41:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4358475#M173026</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2025-01-10T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week of year, week of year 1 in both 2024 and 2025</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4358494#M173029</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added this column but I am not sure of how to use it. Do you mean that I should sort my "week of year"-column by that new column? Because that does not work. Or do you mean that I should use it instead of week of year in my graph like below? Or is there another option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I want the same layout as in the first picture I posted, but with week 1 in december after week 52, but maybe that's not possbile?&amp;nbsp;&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;</description>
      <pubDate>Fri, 10 Jan 2025 09:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4358494#M173029</guid>
      <dc:creator>Jodallen123</dc:creator>
      <dc:date>2025-01-10T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week of year, week of year 1 in both 2024 and 2025</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4361041#M173122</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588595" data-lia-user-login="Jodallen123" class="lia-mention lia-mention-user"&gt;Jodallen123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forgive me for not fully understanding your question. Is this the result you expected?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 07:39:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-week-of-year-week-of-year-1-in-both-2024-and-2025/m-p/4361041#M173122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-13T07:39:11Z</dc:date>
    </item>
  </channel>
</rss>

