<?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 Week start day monday in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998768#M101148</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I need to check if the day is a weekend or not, knowing that the week should starting with Monday.&lt;/P&gt;&lt;P&gt;And to do it, i used weekday function.&lt;/P&gt;&lt;P&gt;But the result is not correct. I have tried all the options and these are the diffrent results i have:&lt;/P&gt;&lt;P&gt;weekday([date], 1) ===&amp;gt; Friday 1, saturday 2 ,&amp;nbsp;sunday 3&lt;/P&gt;&lt;P&gt;weekday([date], 2) ===&amp;gt;&amp;nbsp;saturday 1,&amp;nbsp;sunday 2, monday 3&lt;/P&gt;&lt;P&gt;weekday([date], 3) ===&amp;gt;&amp;nbsp;saturday 0,&amp;nbsp;sunday 1, monday 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what i need is that the number of monday should be 1 , saturday 6 and suday 7 as described in the documentation here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/fr-fr/dax/weekday-function-dax" target="_blank"&gt;https://learn.microsoft.com/fr-fr/dax/weekday-function-dax&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 14:18:03 GMT</pubDate>
    <dc:creator>Rahma</dc:creator>
    <dc:date>2023-01-03T14:18:03Z</dc:date>
    <item>
      <title>Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998768#M101148</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I need to check if the day is a weekend or not, knowing that the week should starting with Monday.&lt;/P&gt;&lt;P&gt;And to do it, i used weekday function.&lt;/P&gt;&lt;P&gt;But the result is not correct. I have tried all the options and these are the diffrent results i have:&lt;/P&gt;&lt;P&gt;weekday([date], 1) ===&amp;gt; Friday 1, saturday 2 ,&amp;nbsp;sunday 3&lt;/P&gt;&lt;P&gt;weekday([date], 2) ===&amp;gt;&amp;nbsp;saturday 1,&amp;nbsp;sunday 2, monday 3&lt;/P&gt;&lt;P&gt;weekday([date], 3) ===&amp;gt;&amp;nbsp;saturday 0,&amp;nbsp;sunday 1, monday 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what i need is that the number of monday should be 1 , saturday 6 and suday 7 as described in the documentation here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/fr-fr/dax/weekday-function-dax" target="_blank"&gt;https://learn.microsoft.com/fr-fr/dax/weekday-function-dax&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 14:18:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998768#M101148</guid>
      <dc:creator>Rahma</dc:creator>
      <dc:date>2023-01-03T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998812#M101150</link>
      <description>&lt;P&gt;You can create a new calculated column if you want it in DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IsWeekend = WEEKDAY('Table1'[Date]) IN {1,7}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if that works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jewel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 14:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998812#M101150</guid>
      <dc:creator>jewel_at</dc:creator>
      <dc:date>2023-01-03T14:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998897#M101165</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="493609" data-lia-user-login="Rahma" class="lia-mention lia-mention-user"&gt;Rahma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;weekday([date], 2) shall be what you expect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you provide some screenshot on how:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weekday([date], 2) ===&amp;gt;&amp;nbsp;saturday 1,&amp;nbsp;sunday 2, monday 3?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 15:20:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/2998897#M101165</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-03T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3000031#M101235</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="493609" data-lia-user-login="Rahma" class="lia-mention lia-mention-user"&gt;Rahma&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I test the weekday function with option parameter 2 and it work as expected. What version of power bi desktop are you worked on? Can you please share a pbix that can reproduce the issue to test?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 05:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3000031#M101235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-04T05:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3000437#M101252</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;i use september 2022 version&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;this is a screenshot for my dates table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="459800" data-lia-user-login="jewel_at" class="lia-mention lia-mention-user"&gt;jewel_at&lt;/a&gt;&amp;nbsp;yes i created it, but the issue here is that saturday and sunday don't have the number 6 and 7 as expected. I added this column for my case&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IsWeekend = IF(WEEKDAY([Date],2) in { 1, 2} ,1,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Jan 2023 08:58:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3000437#M101252</guid>
      <dc:creator>Rahma</dc:creator>
      <dc:date>2023-01-04T08:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3000797#M101283</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="493609" data-lia-user-login="Rahma" class="lia-mention lia-mention-user"&gt;Rahma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2019/1/1 is Tuesday, weekday of 2. What is the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 11:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3000797#M101283</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-04T11:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day monday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3002571#M101428</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="493609" data-lia-user-login="Rahma" class="lia-mention lia-mention-user"&gt;Rahma&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I check the system calendar and find the 1/7/2019 is Monday, the weekday function with option 2 in your table also get the correctly weekday number 1.(Monday to Sunday: 1~7) Why you say this function get the works with wrong result?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsWeekend =
IF ( WEEKDAY ( [Date], 2 ) &amp;gt; 5, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 07:00:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-start-day-monday/m-p/3002571#M101428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-05T07:00:47Z</dc:date>
    </item>
  </channel>
</rss>

