<?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 To find out expired row item that the date will be expired in the next determine month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2516201#M69991</link>
    <description>&lt;P&gt;Hello everyone, may I know how can I code if I wanted to find out what are the number of unique row that their date will be expired in the next determine month (based on todays date) ? For example, the picture below show that C00003 will be expired within the next 6 month based on todays date, however, C00001 is not. So the result will be one out of 2 will be expired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 03:13:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-16T03:13:36Z</dc:date>
    <item>
      <title>To find out expired row item that the date will be expired in the next determine month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2516201#M69991</link>
      <description>&lt;P&gt;Hello everyone, may I know how can I code if I wanted to find out what are the number of unique row that their date will be expired in the next determine month (based on todays date) ? For example, the picture below show that C00003 will be expired within the next 6 month based on todays date, however, C00001 is not. So the result will be one out of 2 will be expired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 03:13:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2516201#M69991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T03:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: To find out expired row item that the date will be expired in the next determine month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2516420#M70003</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , New column&lt;/P&gt;
&lt;P&gt;Expire in next sxi month&lt;/P&gt;
&lt;P&gt;var _date = date(year(today()), month(today())+6 , day(today())&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Switch(True(),&lt;/P&gt;
&lt;P&gt;[Contract Expiry Date] &amp;lt; _date &amp;amp;&amp;amp; [Contract Expiry Date] &amp;gt;= today(), "With in 6 month"&lt;/P&gt;
&lt;P&gt;[Contract Expiry Date] &amp;gt;= _date &amp;amp;&amp;amp; , "After 6 Month")&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2516420#M70003</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-16T06:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: To find out expired row item that the date will be expired in the next determine month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2517520#M70062</link>
      <description>&lt;P&gt;Hi, thanks for your help, but not sure why it is not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:30:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2517520#M70062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: To find out expired row item that the date will be expired in the next determine month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2522186#M70383</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;You can try the following methods.&lt;/P&gt;
&lt;P&gt;Column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expires next month = 
var _date = DATE(Year(today()),Month(today())+2,1)-1
Return
Switch(True(),
[Contact Expiry Date]&amp;lt;=_date &amp;amp;&amp;amp;[Contact Expiry Date]&amp;gt;= today(), "Yes",
[Contact Expiry Date]&amp;gt; _date ,"No")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count = 
CALCULATE (
    DISTINCTCOUNT ( 'Table'[Contract Number] ),
    FILTER ( 'Table', [Expires next month] = "Yes" )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&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;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 05:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2522186#M70383</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-05-18T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: To find out expired row item that the date will be expired in the next determine month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2522194#M70384</link>
      <description>&lt;P&gt;Yes !! thank you so much for helping out&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; really appreciate that !!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 05:59:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-find-out-expired-row-item-that-the-date-will-be-expired-in/m-p/2522194#M70384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-18T05:59:41Z</dc:date>
    </item>
  </channel>
</rss>

