<?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 New vs Existing Customer Based on Sales created date and salesperson in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823205#M38691</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me out here&lt;/P&gt;&lt;P&gt;I'm creating a calculated column with the Customer First Sales Date and in the case where that same customer has a different salesperson it should pick up the 1st sales date ever and not just the 1st sales date for that salesperson. In this case Tom made the 1st sale&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;on 8/4/2008 and that should be Jerry's First Sales Date too. I tried this formula but it doesn't work&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR&lt;BR /&gt;FirstSalesDateKey =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MIN('Sales'[sales_date_key])&lt;BR /&gt;,ALLSELECTED('Sales'[customer_key])&lt;BR /&gt;,ALLEXCEPT('Salesperson','Salesperson'[Salesperson ID])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;FirstSalesDateKey = BLANK()&lt;BR /&gt;,-1&lt;BR /&gt;,FirstSalesDateKey&lt;BR /&gt;)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 21:24:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-04T21:24:35Z</dc:date>
    <item>
      <title>New vs Existing Customer Based on Sales created date and salesperson</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823205#M38691</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me out here&lt;/P&gt;&lt;P&gt;I'm creating a calculated column with the Customer First Sales Date and in the case where that same customer has a different salesperson it should pick up the 1st sales date ever and not just the 1st sales date for that salesperson. In this case Tom made the 1st sale&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;on 8/4/2008 and that should be Jerry's First Sales Date too. I tried this formula but it doesn't work&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR&lt;BR /&gt;FirstSalesDateKey =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MIN('Sales'[sales_date_key])&lt;BR /&gt;,ALLSELECTED('Sales'[customer_key])&lt;BR /&gt;,ALLEXCEPT('Salesperson','Salesperson'[Salesperson ID])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;FirstSalesDateKey = BLANK()&lt;BR /&gt;,-1&lt;BR /&gt;,FirstSalesDateKey&lt;BR /&gt;)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 21:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823205#M38691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-04T21:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: New vs Existing Customer Based on Sales created date and salesperson</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823330#M38695</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;The problem is your ALLEXCEPT, this is preserving the Sales Person filter. Try replacing ALLEXCEPT with ALL&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823330#M38695</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-05-04T23:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: New vs Existing Customer Based on Sales created date and salesperson</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823375#M38697</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;thanks for helping out. I I replaced the ALLEXCEPT with ALL but it didn't work&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:55:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823375#M38697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-04T23:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: New vs Existing Customer Based on Sales created date and salesperson</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823751#M38703</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link down below.&lt;/P&gt;&lt;P&gt;I tried to create a sample pbix file based on your explanation.&lt;/P&gt;&lt;P&gt;All measures are in the sample pbix file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;First Sales Date fix = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;ISFILTERED ( Customers[Customer] ),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;NOT ISBLANK ( [Sales Total] ),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;CALCULATE ( MIN ( Sales[Date] ), ALLEXCEPT ( Sales, Customers[Customer] ) )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/zjwa6tbwza3kl4w/lefli.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/zjwa6tbwza3kl4w/lefli.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 05:06:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1823751#M38703</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-05T05:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: New vs Existing Customer Based on Sales created date and salesperson</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1825178#M38736</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@&lt;SPAN&gt;Jihwan_Kim it worked!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:46:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-vs-Existing-Customer-Based-on-Sales-created-date-and/m-p/1825178#M38736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-05T14:46:10Z</dc:date>
    </item>
  </channel>
</rss>

