<?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 to get MIN/MAX date from a slicer but ignoring date in matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3330004#M124770</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;!!!&amp;nbsp; That worked&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 18:54:06 GMT</pubDate>
    <dc:creator>dancarr22</dc:creator>
    <dc:date>2023-07-13T18:54:06Z</dc:date>
    <item>
      <title>DAX to get MIN/MAX date from a slicer but ignoring date in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3321169#M124304</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The slicer and the matrix in the screenshot below both reference the same date table.&amp;nbsp; The Date table has every day between 1/1/1995 to 12/31/2024.&lt;/P&gt;&lt;P&gt;How can I get the MIN and MAX date from the AsOfDate slicer and reference in the matrix?&amp;nbsp; If I just calc min/max date it only displays MIN/MAX for the current year - as is grouped in the matrix.&amp;nbsp; If I use ALL it removes all filters and doesn't even use the slicer filter dates.&amp;nbsp; So, I'd want the calc to display (MIN) 5/13/2006 in every cell in the matrix - and MAX of 3/20/2019.&lt;/P&gt;&lt;P&gt;This is needed for financial calcs we are performing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any assistance you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&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;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2023 04:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3321169#M124304</guid>
      <dc:creator>dancarr22</dc:creator>
      <dc:date>2023-07-08T04:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to get MIN/MAX date from a slicer but ignoring date in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3321332#M124313</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32943" data-lia-user-login="dancarr22" class="lia-mention lia-mention-user"&gt;dancarr22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ALLSELECTED is your friend here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The expression&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE (
    MIN ( 'Date'[Date] ),
    ALLSELECTED ()
    -- or ALLSELECTED ( 'Date' )
)&lt;/LI-CODE&gt;
&lt;P&gt;evaluated at the "top level" of a measure used directly in the visual will return the minimum date ignoring filters due to grouping within the visual (roughly speaking), which in your case should be the minimum filtered on the slicer.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Similarly for max date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this article for a full discussion of ALLSELECTED:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/" target="_blank"&gt;https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2023 10:39:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3321332#M124313</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-07-08T10:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to get MIN/MAX date from a slicer but ignoring date in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3330004#M124770</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;!!!&amp;nbsp; That worked&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 18:54:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-get-MIN-MAX-date-from-a-slicer-but-ignoring-date-in/m-p/3330004#M124770</guid>
      <dc:creator>dancarr22</dc:creator>
      <dc:date>2023-07-13T18:54:06Z</dc:date>
    </item>
  </channel>
</rss>

