<?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 formula that parses whether a date is in the current month, before the month, or after the curre in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165974#M113863</link>
    <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Good morning &lt;SPAN&gt;EylesIT&lt;/SPAN&gt;, first I want to thank you for your help. Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am in need of a calculated column, as the measure did not work in my table. Then, I changed from measure to calculated column, but the result is not working. Look:&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Thank you in advance if you can help me complete this challenge!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 13:42:40 GMT</pubDate>
    <dc:creator>osvaldocordeiro</dc:creator>
    <dc:date>2023-03-31T13:42:40Z</dc:date>
    <item>
      <title>DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3163715#M113702</link>
      <description>&lt;P&gt;Good morning guys,&amp;nbsp;&lt;SPAN&gt;I need help in the following sense:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;If the date is in the current month, it will show a yellow light, if the date is before the month of the current month, it will show a red light and if the date is after the current month, it will show an orange light.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I thank you all!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:37:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3163715#M113702</guid>
      <dc:creator>osvaldocordeiro</dc:creator>
      <dc:date>2023-03-30T14:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3163741#M113705</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="539080" data-lia-user-login="osvaldocordeiro" class="lia-mention lia-mention-user"&gt;osvaldocordeiro&lt;/a&gt;&amp;nbsp;, this is one way. Create a DAX measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;KPIColour = 
    SWITCH(TRUE()
        ,DATEDIFF(SELECTEDVALUE('Period'[date_from]), NOW(), MONTH) = 0, "Current month - Yellow"
        ,DATEDIFF(SELECTEDVALUE('Period'[date_from]), NOW(), MONTH) &amp;gt;= 0, "Before current month - Red"
        ,DATEDIFF(SELECTEDVALUE('Period'[date_from]), NOW(), MONTH) &amp;lt;= 0, "After current month - Orange"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This uses teh date field [date_from] in my time table called 'period'. When I create a visual and place the fields [date_from] and the measure KPIColour, this is the result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3163741#M113705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-30T14:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3163941#M113714</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Status = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactTable&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;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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;SPAN&gt;"#FFCCCB"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactTable&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&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;SPAN&gt;"#FFD580"&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;Try this once!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Use this measure in Conditional formatting &amp;gt;&amp;gt; Find value option&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Mar 2023 17:45:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3163941#M113714</guid>
      <dc:creator>Ajendra</dc:creator>
      <dc:date>2023-03-30T17:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165962#M113862</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Good morning Ajendra, first I want to thank you for your help. Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am in need of a calculated column, as the measure did not work in my table. Then, I changed from measure to calculated column, but the result is not working. Look:&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank you in advance if you can help me complete this challenge!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:29:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165962#M113862</guid>
      <dc:creator>osvaldocordeiro</dc:creator>
      <dc:date>2023-03-31T13:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165974#M113863</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Good morning &lt;SPAN&gt;EylesIT&lt;/SPAN&gt;, first I want to thank you for your help. Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am in need of a calculated column, as the measure did not work in my table. Then, I changed from measure to calculated column, but the result is not working. Look:&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Thank you in advance if you can help me complete this challenge!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:42:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165974#M113863</guid>
      <dc:creator>osvaldocordeiro</dc:creator>
      <dc:date>2023-03-31T13:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165990#M113866</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Sorry, EylesIT for not putting your name on it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3165990#M113866</guid>
      <dc:creator>osvaldocordeiro</dc:creator>
      <dc:date>2023-03-31T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3166004#M113869</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="539080" data-lia-user-login="osvaldocordeiro" class="lia-mention lia-mention-user"&gt;osvaldocordeiro&lt;/a&gt;&amp;nbsp;, no problem. Do you know you can edit your post? Click on the three vertical dots at the top-right of the post and select Edit Reply&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3166004#M113869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-31T13:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3179964#M114930</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Good morning&amp;nbsp;EylesIT,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;In addition to your help, we managed to solve the challenge. Thanks a lot for the help. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;See how it turned out: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Indicator = VAR DATA_X = DATE(YEAR(TODAY()), MONTH(TODAY()), "01") RETURN IF('Portfolio Planning 2023'[Planned Start Period &amp;nbsp;].[MonthNo] == MONTH(TODAY()) &amp;amp;&amp;amp; YEAR(TODAY()) == 'Portfolio Planning 2023'[Planned Start Period &amp;nbsp;].[Year], 0, IF('Portfolio Planning 2023'[Planned Start Period &amp;nbsp;]&amp;lt; DATA_X, -1,1))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 13:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3179964#M114930</guid>
      <dc:creator>osvaldocordeiro</dc:creator>
      <dc:date>2023-04-10T13:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula that parses whether a date is in the current month, before the month, or after the curre</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3179965#M114931</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Good morning Ajendra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;In addition to your help, we managed to solve the challenge. Thanks a lot for the help. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;See how it turned out: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Indicator = VAR DATA_X = DATE(YEAR(TODAY()), MONTH(TODAY()), "01") RETURN IF('Portfolio Planning 2023'[Planned Start Period &amp;nbsp;].[MonthNo] == MONTH(TODAY()) &amp;amp;&amp;amp; YEAR(TODAY()) == 'Portfolio Planning 2023'[Planned Start Period &amp;nbsp;].[Year], 0, IF('Portfolio Planning 2023'[Planned Start Period &amp;nbsp;]&amp;lt; DATA_X, -1,1))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 14:00:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-that-parses-whether-a-date-is-in-the-current-month/m-p/3179965#M114931</guid>
      <dc:creator>osvaldocordeiro</dc:creator>
      <dc:date>2023-04-10T14:00:46Z</dc:date>
    </item>
  </channel>
</rss>

