<?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 date issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1529740#M29996</link>
    <description>&lt;P&gt;Your first post indicated that filtering wasn't happening and your last one suggest too much filtering is happening.&amp;nbsp; In any case, ALLSELECTED will not remove filters coming from slicers outside your matrix.&amp;nbsp; You need to use ALL instead.&amp;nbsp; For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Production Year = CALCULATE(MIN('Resource Annuals'[Date]), ALL('Resource Annuals'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 01:00:21 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2020-12-03T01:00:21Z</dc:date>
    <item>
      <title>Dax date issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1526864#M29900</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my date table [Date] linked with a 1 to many relationship to with Resource Annual [Date].&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The simple dax below works to calculate the first date in the series as the Production Start Year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Production Start Year =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MIN( 'Resource Annuals'[Date] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could somebody please tell me why when I use my date table year as a slicer it does not filter the matrix but instead returns the same year for each row of my matrix?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 15:43:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1526864#M29900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T15:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dax date issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1527397#M29934</link>
      <description>&lt;P&gt;Make sure both columns in the relationship are Date type, and not DateTime.&amp;nbsp; It is not enough to change the format; it needs to be changed in the query editor.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 00:52:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1527397#M29934</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-12-02T00:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dax date issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1529441#M29985</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both of my columns are formatted as date only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seems to be that once I slice by year using my date table the Resource Annual table is filtered to that year. This then become the new min date that is returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume I need to make use of ALLSELECTED but can't figure out the pattern to slice by year and retain the original Production Start Year.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 18:39:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1529441#M29985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-02T18:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dax date issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1529740#M29996</link>
      <description>&lt;P&gt;Your first post indicated that filtering wasn't happening and your last one suggest too much filtering is happening.&amp;nbsp; In any case, ALLSELECTED will not remove filters coming from slicers outside your matrix.&amp;nbsp; You need to use ALL instead.&amp;nbsp; For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Production Year = CALCULATE(MIN('Resource Annuals'[Date]), ALL('Resource Annuals'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 01:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-date-issue/m-p/1529740#M29996</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-12-03T01:00:21Z</dc:date>
    </item>
  </channel>
</rss>

