<?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: Getting the minimum day in a date column from a filtered table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081110#M15249</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215853" data-lia-user-login="camargos88" class="lia-mention lia-mention-user"&gt;camargos88&lt;/a&gt;&amp;nbsp;, you are right, I shoudl have posted some data.&lt;/P&gt;&lt;P&gt;Here it is a sample of the data set and what I am expected to get:&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have more regions that this and I would like to create a measure that gets me the day when I started geting sales in each region.&amp;nbsp;In PowerBI then I would use the measure that involves DATE and N_PROD and then present it in a table aggregated by region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SQL this is somthing quit simple but I just dont get the right DAX formula to implemented in Power BI&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much again! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 09:01:47 GMT</pubDate>
    <dc:creator>isasai87</dc:creator>
    <dc:date>2020-05-08T09:01:47Z</dc:date>
    <item>
      <title>Getting the minimum day in a date column from a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1079924#M15210</link>
      <description>&lt;P&gt;Hi all!!&lt;/P&gt;&lt;P&gt;I am new to Power BI and DAX functions and I would be really thankful if you could help me with this!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to recreate the following sql script with a dax function:&lt;/P&gt;&lt;P&gt;select id_region, min(date)&lt;BR /&gt;where n_products &amp;lt;&amp;gt; 0&lt;BR /&gt;group by id_region;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So lets say I have a product that I have just launch in the market in several regions and I am evaluating my marketing campaing. I have a record of the number of products that I sell each day in each region (each record will have a zero for the "number of products sold" until I dont start selling products)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have a table with three columns (id_region, date and num_prod --number of products sold--) so for each region I have a record of the number of products that were sold each day (for a particular product).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; I want to create a measure that gives me the first day that this product started being sold in each region (I dont need the region in my DAX since I will aggregate it later in Power BI)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the followint DAX function but its giving me a wrong result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;prod_date1 = CALCULATE(min('productA'[date] ),&lt;BR /&gt;FILTER ( 'productA',&lt;BR /&gt;'productA'[num_prod] &amp;lt;&amp;gt; 0)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you sooo much in advance!!!!!!!!&lt;BR /&gt;Isabel&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 18:28:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1079924#M15210</guid>
      <dc:creator>isasai87</dc:creator>
      <dc:date>2020-05-07T18:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the minimum day in a date column from a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1080019#M15216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="228929" data-lia-user-login="isasai87" class="lia-mention lia-mention-user"&gt;isasai87&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can drag the region_id to the table visual and this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure = CALCULATE(MIN('Table (2)'[date]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, it's better if you post some data and expected results as example. Just to check what you have so far.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 19:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1080019#M15216</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-05-07T19:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the minimum day in a date column from a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081110#M15249</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215853" data-lia-user-login="camargos88" class="lia-mention lia-mention-user"&gt;camargos88&lt;/a&gt;&amp;nbsp;, you are right, I shoudl have posted some data.&lt;/P&gt;&lt;P&gt;Here it is a sample of the data set and what I am expected to get:&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&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&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have more regions that this and I would like to create a measure that gets me the day when I started geting sales in each region.&amp;nbsp;In PowerBI then I would use the measure that involves DATE and N_PROD and then present it in a table aggregated by region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SQL this is somthing quit simple but I just dont get the right DAX formula to implemented in Power BI&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much again! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 09:01:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081110#M15249</guid>
      <dc:creator>isasai87</dc:creator>
      <dc:date>2020-05-08T09:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the minimum day in a date column from a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081295#M15257</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="228929" data-lia-user-login="isasai87" class="lia-mention lia-mention-user"&gt;isasai87&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check it:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 12:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081295#M15257</guid>
      <dc:creator>camargos88</dc:creator>
      <dc:date>2020-05-08T12:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the minimum day in a date column from a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081713#M15286</link>
      <description>&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;P&gt;I cant believe it was so easy!!&lt;/P&gt;&lt;P&gt;I was actually close but I was complitely obsessed with using "filter"&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 17:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-the-minimum-day-in-a-date-column-from-a-filtered-table/m-p/1081713#M15286</guid>
      <dc:creator>isasai87</dc:creator>
      <dc:date>2020-05-08T17:03:37Z</dc:date>
    </item>
  </channel>
</rss>

