<?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: Determine if 2 date columns are before  today and before end of the next month in Power BI / DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2362255#M60409</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;PRE&gt;IF (
    'Table2'[Govnernance] &amp;lt;= TODAY() &amp;amp;&amp;amp; 
    'Table2'[Contract Issue] &amp;lt;= EOMONTH ( Today(),  1 ) &amp;amp;&amp;amp;
    'Table2'[Contract Issue] &amp;gt;  EOMONTH ( Today(), 0 ),
    "yes",
    "No"
) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 09:53:02 GMT</pubDate>
    <dc:creator>tackytechtom</dc:creator>
    <dc:date>2022-02-26T09:53:02Z</dc:date>
    <item>
      <title>Determine if 2 date columns are before  today and before end of the next month in Power BI / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2359702#M60254</link>
      <description>&lt;P&gt;I have 2 columns that includes 2 different dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i'm trying to do is to create a calculated column that determines whether column "governance" is &amp;lt;= TODAY and the "contract issue" column is &amp;lt;= the end of the next month (i.e. March). with either "yes" or "no" in the if statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample table below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;Governance&amp;nbsp; &amp;nbsp; Contract Issue &lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;14/01/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp;04/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/02/2022&lt;/TD&gt;&lt;TD&gt;11/03/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 21:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2359702#M60254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-24T21:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if 2 date columns are before  today and before end of the next month in Power BI / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2359734#M60256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;PRE&gt;IF (
    'Table'[Governance] &amp;lt;= TODAY() &amp;amp;&amp;amp; 'Table'[Contract Issue] &amp;lt;= EOMONTH ( Today(), 1 ),
    "yes",
    "No"
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this solve your issue? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank" rel="noopener"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank" rel="noopener"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 21:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2359734#M60256</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-02-24T21:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if 2 date columns are before  today and before end of the next month in Power BI / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2360523#M60309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the quick response. i've tried it but it returns me all "contract issue" that's happened before the end of the next month (even in the past) what i was looking for was the contract issue dates between the start of next month and the end of next month (i.e. only all march dates only)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 07:20:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2360523#M60309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-25T07:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if 2 date columns are before  today and before end of the next month in Power BI / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2362255#M60409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;PRE&gt;IF (
    'Table2'[Govnernance] &amp;lt;= TODAY() &amp;amp;&amp;amp; 
    'Table2'[Contract Issue] &amp;lt;= EOMONTH ( Today(),  1 ) &amp;amp;&amp;amp;
    'Table2'[Contract Issue] &amp;gt;  EOMONTH ( Today(), 0 ),
    "yes",
    "No"
) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 09:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2362255#M60409</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-02-26T09:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if 2 date columns are before  today and before end of the next month in Power BI / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2366297#M60577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a &lt;STRONG&gt;calculated column&lt;/STRONG&gt; as below to get it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = 
VAR _today =
    DATE ( 2022, 2, 25 )
RETURN
    IF (
        'Table'[Governance] &amp;lt;= _today
            &amp;amp;&amp;amp; 'Table'[Contract Issue]
                &amp;gt;= EOMONTH ( _today, 0 ) + 1
            &amp;amp;&amp;amp; 'Table'[Contract Issue] &amp;lt;= EOMONTH ( _today, 1 ),
        "yes",
        "no"
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 05:38:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-if-2-date-columns-are-before-today-and-before-end-of/m-p/2366297#M60577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-01T05:38:16Z</dc:date>
    </item>
  </channel>
</rss>

