<?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: Column to indicate if same invoice has an earlier date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3781436#M147737</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a new calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _minDate =
    CALCULATE (
        MIN ( 'Table'[Date] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[accountID] = EARLIER ( 'Table'[accountID] )
        )
    )
VAR _maxDate =
    MAXX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[accountID] = EARLIER ( 'Table'[accountID] )
        ),
        'Table'[Date]
    )
RETURN
    IF ( 'Table'[Date] = _minDate &amp;amp;&amp;amp; 'Table'[Date] &amp;lt;&amp;gt; _maxDate, 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;Finally you will get the date you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 05:58:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-21T05:58:32Z</dc:date>
    <item>
      <title>Column to indicate if same invoice has an earlier date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3749165#M146234</link>
      <description>&lt;P&gt;I have a data set in which I have a series of invioces with various criteria.&amp;nbsp; &amp;nbsp;But i'm trying to account for an issue in which multiple invoices are created for the same account.&amp;nbsp; This would only occur if another criteria is met, in this case a flag is indicated...so I can't use Group By in Power Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I create&amp;nbsp; column in the table that would identify if that same accountID has another row with an earlier invoice date?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 15:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3749165#M146234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-07T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Column to indicate if same invoice has an earlier date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3749821#M146260</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:53:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3749821#M146260</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-07T22:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Column to indicate if same invoice has an earlier date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3781436#M147737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a new calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _minDate =
    CALCULATE (
        MIN ( 'Table'[Date] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[accountID] = EARLIER ( 'Table'[accountID] )
        )
    )
VAR _maxDate =
    MAXX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[accountID] = EARLIER ( 'Table'[accountID] )
        ),
        'Table'[Date]
    )
RETURN
    IF ( 'Table'[Date] = _minDate &amp;amp;&amp;amp; 'Table'[Date] &amp;lt;&amp;gt; _maxDate, 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;Finally you will get the date you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 05:58:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-indicate-if-same-invoice-has-an-earlier-date/m-p/3781436#M147737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-21T05:58:32Z</dc:date>
    </item>
  </channel>
</rss>

