<?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: Create a Column using DAX that flags if a row existed in the previous month based on a ID Field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/747011#M2537</link>
    <description>&lt;PRE&gt;[Existed In Prev Month] = -- calculated column
-- T[Month] must be the first day of the month
var __currentMonth = T[Month]
var __currentID = T[ID]
-- This moves the MONTH to be the first day
-- of the prior month.
var __prevMonth = EDATE ( __currentMonth, -1 )
var __existedInPrevMonth =
	not isempty(
		filter(
			T,
			T[ID] = __currentID,
			T[Month] = __prevMonth 
		)
	)
return
	__existedInPrevMonth&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 18:08:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-23T18:08:22Z</dc:date>
    <item>
      <title>Create a Column using DAX that flags if a row existed in the previous month based on a ID Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/739950#M2221</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a Column that flags if a record existed in the previous month, so that if it didn't I can exclude it from the current months calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Month

1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jun-19

2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jun-19

3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jun-19

4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jun-19

1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;May-19

2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;May-19

3&amp;nbsp; &amp;nbsp; &amp;nbsp; May-19&lt;/PRE&gt;&lt;P&gt;So in the example above, I want 3rd Column that tells me for example that ID 4 did not exist in May&lt;/P&gt;&lt;P&gt;I want to do this for every record&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 11:57:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/739950#M2221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-15T11:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Column using DAX that flags if a row existed in the previous month based on a ID Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/740236#M2232</link>
      <description>&lt;P&gt;What is the data type of the Month column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 18:08:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/740236#M2232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-15T18:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Column using DAX that flags if a row existed in the previous month based on a ID Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/745551#M2475</link>
      <description>&lt;P&gt;Date/Time&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 08:15:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/745551#M2475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-22T08:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Column using DAX that flags if a row existed in the previous month based on a ID Field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/747011#M2537</link>
      <description>&lt;PRE&gt;[Existed In Prev Month] = -- calculated column
-- T[Month] must be the first day of the month
var __currentMonth = T[Month]
var __currentID = T[ID]
-- This moves the MONTH to be the first day
-- of the prior month.
var __prevMonth = EDATE ( __currentMonth, -1 )
var __existedInPrevMonth =
	not isempty(
		filter(
			T,
			T[ID] = __currentID,
			T[Month] = __prevMonth 
		)
	)
return
	__existedInPrevMonth&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 18:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Column-using-DAX-that-flags-if-a-row-existed-in-the/m-p/747011#M2537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T18:08:22Z</dc:date>
    </item>
  </channel>
</rss>

