<?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: Flag first timestamp for a list of events per LeadId in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704761#M35139</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Almost! But when I use that it shows up another row for some reason now? I also want it to not take "blank" into consideration so I changed it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test =&lt;BR /&gt;IF(&lt;BR /&gt;MIN( 'SR.LeadDetails'[DateStatusModifiedFull] )&lt;BR /&gt;= CALCULATE(&lt;BR /&gt;MIN( 'SR.LeadDetails'[DateStatusModifiedFull] ),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED( 'SR.LeadDetails' ),&lt;BR /&gt;'SR.LeadDetails'[LeadId] = MAX( 'SR.LeadDetails'[LeadId] )&lt;BR /&gt;),&lt;BR /&gt;'SR.LeadDetails'[Status] &amp;lt;&amp;gt; "Blank"&lt;BR /&gt;),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 07:17:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-05T07:17:05Z</dc:date>
    <item>
      <title>Flag first timestamp for a list of events per LeadId</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704053#M35110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to identify and isolate the first timestamp modify per lead. The goal is to count number of leads per the first status of a lead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test =&lt;BR /&gt;VAR LowestTime =&lt;BR /&gt;MIN( 'SR.LeadDetails'[TimeStatusModified] )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MIN( 'SR.LeadDetails'[TimeStatusModified] ),&lt;BR /&gt;ALLSELECTED(),&lt;BR /&gt;VALUES( 'SR.LeadDetails'[LeadId] )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which gives me this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I can isolate the first timestamp, but when I wrap it in a IF and try to make it a 1 or 0, it messes up the filter context an table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how I can do this? It should be the first timestamp where a status is not "Blank".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Ali&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704053#M35110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-04T20:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flag first timestamp for a list of events per LeadId</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704567#M35132</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = if(MIN( 'SR.LeadDetails'[TimeStatusModified] ) = calculate(MIN( 'SR.LeadDetails'[TimeStatusModified] ), filter( allselected('SR.LeadDetails'), 'SR.LeadDetails'[LeadId] = max('SR.LeadDetails'[LeadId]))) ,1 ,0)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 05:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704567#M35132</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-05T05:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Flag first timestamp for a list of events per LeadId</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704761#M35139</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Almost! But when I use that it shows up another row for some reason now? I also want it to not take "blank" into consideration so I changed it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test =&lt;BR /&gt;IF(&lt;BR /&gt;MIN( 'SR.LeadDetails'[DateStatusModifiedFull] )&lt;BR /&gt;= CALCULATE(&lt;BR /&gt;MIN( 'SR.LeadDetails'[DateStatusModifiedFull] ),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED( 'SR.LeadDetails' ),&lt;BR /&gt;'SR.LeadDetails'[LeadId] = MAX( 'SR.LeadDetails'[LeadId] )&lt;BR /&gt;),&lt;BR /&gt;'SR.LeadDetails'[Status] &amp;lt;&amp;gt; "Blank"&lt;BR /&gt;),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 07:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-first-timestamp-for-a-list-of-events-per-LeadId/m-p/1704761#M35139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-05T07:17:05Z</dc:date>
    </item>
  </channel>
</rss>

