<?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: First sale date per particular product per customer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2431165#M64702</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372725" data-lia-user-login="hcr4" class="lia-mention lia-mention-user"&gt;hcr4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide some of the example data? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 06:39:36 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2022-04-01T06:39:36Z</dc:date>
    <item>
      <title>First sale date per particular product per customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2424549#M64351</link>
      <description>&lt;P&gt;I have two tables - &lt;STRONG&gt;Customer&lt;/STRONG&gt; and &lt;STRONG&gt;Product&lt;/STRONG&gt;. &lt;STRONG&gt;Customer&lt;/STRONG&gt; table has a &lt;EM&gt;FirstSaleDate&lt;/EM&gt; column showing the first time a sale was made to a particular customer regardless of the product and &lt;STRONG&gt;Product&lt;/STRONG&gt; has &lt;EM&gt;FirstProductSale&lt;/EM&gt; showing the first time a particular product was sold regardless of the customer. I want to create a measure that will provide me with a field (ideally in the &lt;STRONG&gt;Product&lt;/STRONG&gt;&amp;nbsp;table) showing when a customer first bought a particular product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DAX skills are lacklustre and I'm not sure where to begin. Appreciate any help, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2424549#M64351</guid>
      <dc:creator>hcr4</dc:creator>
      <dc:date>2022-03-29T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: First sale date per particular product per customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2424706#M64363</link>
      <description>&lt;P&gt;If you also have a Sales table linked to both Product and Customer then MIN(Sales[Order date]) will give the first time a product was ordered. You can put that measure in a table with a Customer and a Product and it will show the first order for that product by that customer&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 15:30:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2424706#M64363</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-29T15:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: First sale date per particular product per customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2425249#M64402</link>
      <description>&lt;P&gt;Hi, thanks for the reply. The Customer and Product tables are 'linked' via Orders and Order Lines tables. I.e. Product &amp;lt;--&amp;gt; Order Lines &amp;lt;--&amp;gt; Orders &amp;lt;--&amp;gt; Customers&lt;/P&gt;&lt;P&gt;So in this case I don't think this works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 21:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2425249#M64402</guid>
      <dc:creator>hcr4</dc:creator>
      <dc:date>2022-03-29T21:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: First sale date per particular product per customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2426127#M64435</link>
      <description>&lt;P&gt;Try MINX( 'Order Lines', RELATED(Orders[Order date])&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 08:02:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2426127#M64435</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-30T08:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: First sale date per particular product per customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2431165#M64702</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372725" data-lia-user-login="hcr4" class="lia-mention lia-mention-user"&gt;hcr4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide some of the example data? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 06:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2431165#M64702</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-04-01T06:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: First sale date per particular product per customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2431187#M64703</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372725" data-lia-user-login="hcr4" class="lia-mention lia-mention-user"&gt;hcr4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I briefly simulated some data that I hope will fit your situation.&lt;/P&gt;
&lt;P&gt;Column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;first bought = 
LOOKUPVALUE (
    Customer[FirstSaleDate],
    'Product'[FirstProductSale], [FirstProductSale]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;first bought M = 
LOOKUPVALUE (
    Customer[FirstSaleDate],
    'Product'[FirstProductSale], SELECTEDVALUE('Product'[FirstProductSale])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;LOOKUPVALUE:&amp;nbsp;&lt;A href="https://docs.microsoft.com/dax/lookupvalue-function-dax" target="_self"&gt;https://docs.microsoft.com/dax/lookupvalue-function-dax&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attachment for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 06:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-sale-date-per-particular-product-per-customer/m-p/2431187#M64703</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-04-01T06:55:08Z</dc:date>
    </item>
  </channel>
</rss>

