<?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: Earliest Date from a column with Multiple Conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424641#M64355</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;That works for the calander year but not by fiscal year. Which in this case starts on Sept 1 through Aug 31. I have Fiscal year defined in a seperate dates table but not within the table trying to do the calculation on. How can I run the fiscal year parameter through this formula?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 17:31:19 GMT</pubDate>
    <dc:creator>MSW</dc:creator>
    <dc:date>2022-03-29T17:31:19Z</dc:date>
    <item>
      <title>Earliest Date from a column with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424203#M64330</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I have been trying unsuccessfully to find a calculated column DAX solution for finding the earliest date per fiscal period. I have a set of dates in one column in a table as well as a column of duplicate customer IDs. Is it possible to find the earliest date for each fiscal period by customer ID? The formula would return the Earliest Date per Year Column.&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;CustomerID&lt;/TD&gt;&lt;TD&gt;date&lt;/TD&gt;&lt;TD&gt;Earliest Date per Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;9/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;2/1/2019&lt;/TD&gt;&lt;TD&gt;10/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;3/1/2019&lt;/TD&gt;&lt;TD&gt;12/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;9/1/2018&lt;/TD&gt;&lt;TD&gt;9/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;10/1/2018&lt;/TD&gt;&lt;TD&gt;10/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;12/1/2018&lt;/TD&gt;&lt;TD&gt;12/1/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;3/1/2020&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;3/1/2020&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;4/1/2020&lt;/TD&gt;&lt;TD&gt;4/1/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;5/1/2020&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;5/1/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 12:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424203#M64330</guid>
      <dc:creator>MSW</dc:creator>
      <dc:date>2022-03-29T12:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest Date from a column with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424263#M64333</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368094" data-lia-user-login="MSW" class="lia-mention lia-mention-user"&gt;MSW&lt;/a&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;new column = &lt;BR /&gt;var _year = year([date]) &lt;BR /&gt;return &lt;BR /&gt;minx(filter(Table,[CustomerID] = earlier([CustomerID]) &amp;amp;&amp;amp; year([date]) = _year), [Date])&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 12:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424263#M64333</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-29T12:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest Date from a column with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424641#M64355</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;That works for the calander year but not by fiscal year. Which in this case starts on Sept 1 through Aug 31. I have Fiscal year defined in a seperate dates table but not within the table trying to do the calculation on. How can I run the fiscal year parameter through this formula?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 17:31:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2424641#M64355</guid>
      <dc:creator>MSW</dc:creator>
      <dc:date>2022-03-29T17:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Earliest Date from a column with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2433128#M64855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368094" data-lia-user-login="MSW" class="lia-mention lia-mention-user"&gt;MSW&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, here's my solution.&lt;/P&gt;
&lt;P&gt;Create two calculated columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FY =
IF (
    MONTH ( 'Table'[date] ) &amp;gt; 8,
    YEAR ( 'Table'[date] ) + 1,
    YEAR ( 'Table'[date] )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Earliest date per year =
MINX (
    FILTER (
        'Table',
        'Table'[CustomerID] = EARLIER ( 'Table'[CustomerID] )
            &amp;amp;&amp;amp; 'Table'[FY] = EARLIER ( 'Table'[FY] )
    ),
    'Table'[date]
)
&lt;/LI-CODE&gt;
&lt;P&gt;Get the expected result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach my sample below for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 08:19:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Earliest-Date-from-a-column-with-Multiple-Conditions/m-p/2433128#M64855</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-04-02T08:19:02Z</dc:date>
    </item>
  </channel>
</rss>

