<?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 how to only show the earliest orderdate in this case in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199198#M19122</link>
    <description>&lt;P&gt;I need some help on this please.&lt;/P&gt;&lt;P&gt;I used a measure called firstOrderDate to calculate the very first order date for each customer it works fine in the first table visual but when I add orderdate column into the second table visual how can I still only show the earliest date and leave the other dates blank for each customer? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;firstOrderDate = CALCULATE(MIN(FactSales[OrderDate]), ALLEXCEPT(DimCustomer, DimCustomer[FullName]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 03 Jul 2020 02:17:17 GMT</pubDate>
    <dc:creator>McFLY</dc:creator>
    <dc:date>2020-07-03T02:17:17Z</dc:date>
    <item>
      <title>how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199198#M19122</link>
      <description>&lt;P&gt;I need some help on this please.&lt;/P&gt;&lt;P&gt;I used a measure called firstOrderDate to calculate the very first order date for each customer it works fine in the first table visual but when I add orderdate column into the second table visual how can I still only show the earliest date and leave the other dates blank for each customer? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;firstOrderDate = CALCULATE(MIN(FactSales[OrderDate]), ALLEXCEPT(DimCustomer, DimCustomer[FullName]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Jul 2020 02:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199198#M19122</guid>
      <dc:creator>McFLY</dc:creator>
      <dc:date>2020-07-03T02:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199270#M19123</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="243350" data-lia-user-login="McFLY" class="lia-mention lia-mention-user"&gt;McFLY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by leave oter dates blank for each customer? Can you show the sample expected results?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 02:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199270#M19123</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-07-03T02:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199450#M19134</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean the third column firstOrderDate in second table I want to always show the earliest date for each customer only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Aaron Collins&amp;nbsp; 2011/1/25 0:00:00&amp;nbsp; 2011/1/25 0:00:00&lt;/P&gt;&lt;P&gt;Aaron Collins 2013/11/16 0:00:00&amp;nbsp; blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 04:50:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199450#M19134</guid>
      <dc:creator>McFLY</dc:creator>
      <dc:date>2020-07-03T04:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199703#M19146</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="243350" data-lia-user-login="McFLY" class="lia-mention lia-mention-user"&gt;McFLY&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Try this measure&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;First Order Date =
VAR a =
    CALCULATE (
        MIN ( FactSales[OrderDate] ),
        FILTER (
            ALL ( DimCustomer ),
            DimCustomer[FullName]
                = MAX ( DimCustomer[FullName] )
        )
    )
RETURN
    IF (
        MAX ( FactSales[OrderDate] ) = a,
        a,
        BLANK ()
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 06:57:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1199703#M19146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T06:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1202974#M19282</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;for your solution.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 07:36:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1202974#M19282</guid>
      <dc:creator>McFLY</dc:creator>
      <dc:date>2020-07-06T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1203217#M19290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="243350" data-lia-user-login="McFLY" class="lia-mention lia-mention-user"&gt;McFLY&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solution helps, please mark it as Solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will help others in the community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1203217#M19290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T09:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to only show the earliest orderdate in this case</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1204307#M19330</link>
      <description>&lt;LI-CODE lang="csharp"&gt;[First Order Date] =
IF( HASONEVALUE( DimCustomer[FullName] ),
	CALCULATE(
		MIN( FactSales[OrderDate] ),
		ALL( FactSales ),
		VALUES( DimCustomer[FullName] )
	)
)&lt;/LI-CODE&gt;&lt;P&gt;This code will return the very first order date for any single customer regardless of any other filters that might have been put on any tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-only-show-the-earliest-orderdate-in-this-case/m-p/1204307#M19330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-06T16:25:16Z</dc:date>
    </item>
  </channel>
</rss>

