<?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: Dax firstdate with slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1527604#M29940</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _min = minx(allselected(Table), table [date])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(Table), filter(Table, Table[Start Date] =_min))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is better that table come from Date or different Table&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _min = minx(allselected(date), date [date])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(Table), filter(Table, Table[Start Date] =_min))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 02:56:09 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-12-02T02:56:09Z</dc:date>
    <item>
      <title>Dax firstdate with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1527046#M29911</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble using a date slicer in conjunction with a firstdate expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start Date = firstdate ( table [date] ]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me the results I expect in my matrix. However, I want to use a slicer from my date table to filter my matrix by year. This is not possible as it appears that any year I slice by then becomes the first date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 21:55:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1527046#M29911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T21:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dax firstdate with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1527604#M29940</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _min = minx(allselected(Table), table [date])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(Table), filter(Table, Table[Start Date] =_min))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is better that table come from Date or different Table&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _min = minx(allselected(date), date [date])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(Table), filter(Table, Table[Start Date] =_min))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 02:56:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1527604#M29940</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-02T02:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dax firstdate with slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1528907#M29965</link>
      <description>&lt;P&gt;Thanks for the reply but that did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify - my measure works as intended but when I try to slice using my date table all of my start years take on the value of the slicer year. I presume the slicer is filtering my table so that a new start year is shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to get the min date of the table. Once I have the min date, I want to use a slicer to select only the rows that contain that min date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 14:06:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-firstdate-with-slicer/m-p/1528907#M29965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-02T14:06:13Z</dc:date>
    </item>
  </channel>
</rss>

