<?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: Find first occurrence of column by date/time belonging to group of rows, populate new column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/3318450#M124178</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; &amp;nbsp;can this be used when month changes, and source is used a get from folder&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 13:07:32 GMT</pubDate>
    <dc:creator>kb177</dc:creator>
    <dc:date>2023-07-06T13:07:32Z</dc:date>
    <item>
      <title>Find first occurrence of column by date/time belonging to group of rows, populate new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/2391307#M62210</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;As per the title, what I'm trying to acheive in a calculated column is find the first entry of a column value ('flowName') for a group of rows (grouped by 'uniqueId'), and populate this found value into a new column ('firstFlow')&lt;BR /&gt;&lt;BR /&gt;So for example, heres a sample set of existing data with a uniqueId, dateTime and flowName.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;uniqueId&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;dateTime&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flowName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;firstFlow&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1111A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2022-03-01 10:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Flow Alpha&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Alpha&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1111A&lt;/TD&gt;&lt;TD&gt;2022-03-01 10:02&lt;/TD&gt;&lt;TD&gt;Flow Beta&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Alpha&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1111A&lt;/TD&gt;&lt;TD&gt;2022-03-01 10:05&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Flow Gamma&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Alpha&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222B&lt;/TD&gt;&lt;TD&gt;2022-03-01 12:34&lt;/TD&gt;&lt;TD&gt;Flow Delta&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Delta&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222B&lt;/TD&gt;&lt;TD&gt;2022-03-01 12:35&lt;/TD&gt;&lt;TD&gt;Flow Omicron&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Delta&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222B&lt;/TD&gt;&lt;TD&gt;2022-03-01 12:56&lt;/TD&gt;&lt;TD&gt;Flow Alpha&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Delta&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222B&lt;/TD&gt;&lt;TD&gt;2022-03-01 13:10&lt;/TD&gt;&lt;TD&gt;Flow Omega&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Delta&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3333C&lt;/TD&gt;&lt;TD&gt;2022-03-01 14:22&lt;/TD&gt;&lt;TD&gt;Flow Gamma&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Gamma&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3333C&lt;/TD&gt;&lt;TD&gt;2022-03-01 14:47&lt;/TD&gt;&lt;TD&gt;Flow Alpha&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#0000FF"&gt;Flow Gamma&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;What I'm trying to acheive is the column result in Blue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jeff.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 06:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/2391307#M62210</guid>
      <dc:creator>jeff_h</dc:creator>
      <dc:date>2022-03-14T06:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find first occurrence of column by date/time belonging to group of rows, populate new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/2391461#M62216</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366727" data-lia-user-login="jeff_h" class="lia-mention lia-mention-user"&gt;jeff_h&lt;/a&gt; , a new column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New Column =&lt;BR /&gt;var _max = minx(filter(Table, [uniqueId] = earlier([uniqueId]) ) ,[dateTime])&lt;BR /&gt;return&lt;BR /&gt;maxx(filter(Table, [uniqueId] = earlier([uniqueId]) &amp;amp;&amp;amp; [dateTime] =_max) ,[flowName])&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 07:37:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/2391461#M62216</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-14T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find first occurrence of column by date/time belonging to group of rows, populate new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/2391606#M62223</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Awesome! Thanks so much, that worked perfectly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 08:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/2391606#M62223</guid>
      <dc:creator>jeff_h</dc:creator>
      <dc:date>2022-03-14T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find first occurrence of column by date/time belonging to group of rows, populate new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/3318450#M124178</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; &amp;nbsp;can this be used when month changes, and source is used a get from folder&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-first-occurrence-of-column-by-date-time-belonging-to-group/m-p/3318450#M124178</guid>
      <dc:creator>kb177</dc:creator>
      <dc:date>2023-07-06T13:07:32Z</dc:date>
    </item>
  </channel>
</rss>

