<?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 - If Today is the last Monday of the month. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661872#M78971</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;. This is prefect and works a treat. Many thanks for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 11:41:25 GMT</pubDate>
    <dc:creator>msommerf</dc:creator>
    <dc:date>2022-07-26T11:41:25Z</dc:date>
    <item>
      <title>DAX - If Today is the last Monday of the month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661359#M78916</link>
      <description>&lt;P&gt;I have the following scenario that I am hoping somebody can help with?&lt;/P&gt;&lt;P&gt;I have a Power BI report on which I would like to display some set text if today is the last Monday of the Month.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way I can check if Today() is the last Monday of the current month, if yes display 1 else 0?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The report does not have a date table as the data displayed does not have any dates in it.&lt;/P&gt;&lt;P&gt;Any assitance appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 08:56:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661359#M78916</guid>
      <dc:creator>msommerf</dc:creator>
      <dc:date>2022-07-26T08:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - If Today is the last Monday of the month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661630#M78941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="126730" data-lia-user-login="msommerf" class="lia-mention lia-mention-user"&gt;msommerf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you check that using&lt;/P&gt;&lt;P&gt;IF ( WEEKDAY ( TODAY ( ), 2 ) = 1, 1, 0 )&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 10:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661630#M78941</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T10:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - If Today is the last Monday of the month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661726#M78955</link>
      <description>&lt;P&gt;Won't that only tell me if today is a Monday? It won't tell me if it is the last Monday of the month.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 10:54:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661726#M78955</guid>
      <dc:creator>msommerf</dc:creator>
      <dc:date>2022-07-26T10:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - If Today is the last Monday of the month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661757#M78957</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="126730" data-lia-user-login="msommerf" class="lia-mention lia-mention-user"&gt;msommerf&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Oh srry did not read carefully. Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
VAR TodayDate =
    TODAY ()
VAR StartOfTheMonth =
    EOMONTH ( TodayDate, -1 ) + 1
VAR EndOfTheMonth =
    EOMONTH ( TodayDate, 0 )
VAR T1 =
    CALENDAR ( StartOfTheMonth, EndOfTheMonth )
VAR T2 =
    ADDCOLUMNS ( T1, "@Weekday", WEEKDAY ( [Date], 2 ) )
VAR T3 =
    FILTER ( T2, [@Weekday] = 1 )
VAR LastMonday =
    MAXX ( T3, [Date] )
RETURN
    IF ( TodayDate = LastMonday, 1, 0 )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661757#M78957</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T11:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - If Today is the last Monday of the month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661872#M78971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;. This is prefect and works a treat. Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-If-Today-is-the-last-Monday-of-the-month/m-p/2661872#M78971</guid>
      <dc:creator>msommerf</dc:creator>
      <dc:date>2022-07-26T11:41:25Z</dc:date>
    </item>
  </channel>
</rss>

