<?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 Date of first sales per product in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-of-first-sales-per-product/m-p/986544#M12155</link>
    <description>&lt;P&gt;Hi I have a dataset of looking like |Product name|Date|Sales| and I want to find the date of first sales, i.e. the Date for each product corresponding to the first non-zero value. In excel I would display the data in matrix format and use an Index(match)-function, but it is more tricky in the list format of power bi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying something like this, but I am not sure how to make the filter so that the measure runs per product (Product name=Product name is probably not filtering anything):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Launch year = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TOPN ( 1, FILTER ( Table ,&lt;U&gt;[Product name]=[Product name]&lt;/U&gt;&amp;amp;&amp;amp;[Net turnover (OC)] &amp;lt;&amp;gt; 0 ),[Date].[Year], ASC ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Date].[Year]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This retrieves the first non-zero value for the sumtotal, so all products get the same launch year. Can anyone help me get the individual dates per product?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 23 Mar 2020 08:03:28 GMT</pubDate>
    <dc:creator>oslosa</dc:creator>
    <dc:date>2020-03-23T08:03:28Z</dc:date>
    <item>
      <title>Date of first sales per product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-of-first-sales-per-product/m-p/986544#M12155</link>
      <description>&lt;P&gt;Hi I have a dataset of looking like |Product name|Date|Sales| and I want to find the date of first sales, i.e. the Date for each product corresponding to the first non-zero value. In excel I would display the data in matrix format and use an Index(match)-function, but it is more tricky in the list format of power bi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying something like this, but I am not sure how to make the filter so that the measure runs per product (Product name=Product name is probably not filtering anything):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Launch year = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TOPN ( 1, FILTER ( Table ,&lt;U&gt;[Product name]=[Product name]&lt;/U&gt;&amp;amp;&amp;amp;[Net turnover (OC)] &amp;lt;&amp;gt; 0 ),[Date].[Year], ASC ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Date].[Year]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This retrieves the first non-zero value for the sumtotal, so all products get the same launch year. Can anyone help me get the individual dates per product?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Mar 2020 08:03:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-of-first-sales-per-product/m-p/986544#M12155</guid>
      <dc:creator>oslosa</dc:creator>
      <dc:date>2020-03-23T08:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date of first sales per product</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-of-first-sales-per-product/m-p/986602#M12158</link>
      <description>&lt;P&gt;you could use a calculated column with the following formula:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;First Sale Date = minx(filter('Table','Table'[Product]=earlier('Table'[Product]) &amp;amp;&amp;amp; 'Table'[Sales]&amp;gt;0),'Table'[Sale Date])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Mar 2020 09:09:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-of-first-sales-per-product/m-p/986602#M12158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T09:09:28Z</dc:date>
    </item>
  </channel>
</rss>

