<?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: Min &amp;amp; Max Selection from slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4010477#M157811</link>
    <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Have you solved your problems?&lt;BR /&gt;If you have found suitable solutions, please share them as it will help more users with similar problems. Or you can mark the valid suggestions provided by other users as solutions&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 06:12:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-26T06:12:19Z</dc:date>
    <item>
      <title>Min &amp; Max Selection from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/3998011#M155493</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to select minimum and maximum date from the slicer. When I select 13-05-2024 but it is showing 20-May-2024.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;am using below formula&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test_min =&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;min_month_calendar&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;minx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;min_month_calendar&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"dd-mmm-yyyy"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 10:33:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/3998011#M155493</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-06-18T10:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Min &amp; Max Selection from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/3999321#M155719</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am glad to help you.&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the maximum and minimum date of the current selection in the slicer. But the slicer returns the wrong result&lt;BR /&gt;here is my test result&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I used the dax code you provided and unfortunately got the correct result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This is very strange and I think it has something to do with the computing environment (something is wrong with the computing environment that measure is in)&lt;/P&gt;
&lt;P&gt;I noticed that you are using the ALLSELECTED() function&lt;/P&gt;
&lt;P&gt;You can see that when I add add a second slicer (both slicers have the same filter fields but different filter ranges)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;At this point you can see that there is a problem with the value returned by MEASURE&lt;/P&gt;
&lt;P&gt;In fact, when you use the ALLSELECTED function, it takes into account the values of all relevant slicers, and I think this is the reason for your problem (it works fine when there is only one filter, but has problems when there are multiple external filters, which are affected by multiple slicers at the same time, and usually give incorrect composite results).&lt;/P&gt;
&lt;P&gt;Your code itself should be fine, but in your calculation environment there may be more than one filter on the date, which will lead to the calculation result is wrong, please check whether there are redundant filters in your settings.&lt;/P&gt;
&lt;P&gt;Please check if there are any extra filters in your settings, and make sure that the fields in the measure are consistent with the filtered fields in the slicer.&lt;/P&gt;
&lt;P&gt;Calculation environment is very complex but important, please check whether there are any extra filters in your calculation environment, which may affect the result of the measure.&lt;BR /&gt;here is my test code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_slicer_max = 
VAR max_ = MAX('Date'[Date_slicer])
RETURN FORMAT(max_,"dd-mmm-yyyy")
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Test_max = 
VAR min_month_calendar = CALCULATE(MAXX(ALLSELECTED('Date'),'Date'[Date_slicer]))
RETURN FORMAT(min_month_calendar,"dd-mmm-yyyy")
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 03:45:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/3999321#M155719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-19T03:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Min &amp; Max Selection from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/3999343#M155722</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for suggestion. I will try and check where is going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 04:21:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/3999343#M155722</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-06-19T04:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Min &amp; Max Selection from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4010477#M157811</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Have you solved your problems?&lt;BR /&gt;If you have found suitable solutions, please share them as it will help more users with similar problems. Or you can mark the valid suggestions provided by other users as solutions&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:12:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4010477#M157811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T06:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Min &amp; Max Selection from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4010512#M157816</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As requirement is bit different still working on the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4010512#M157816</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-06-26T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Min &amp; Max Selection from slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4014868#M158190</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Not sure how to solve this issue. If I go with Average below count is not big difference but count wise it has a big difference. Is there anyway I can alert that count is flucating.&amp;nbsp;&lt;/P&gt;&lt;P&gt;MinAvg=15.33 MaxAvg=13.00 = DiffAvg : 13.00 - 15.33 = -&lt;FONT color="#FF6600"&gt;2.33&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;WeekNumber&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Week-22&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Week-23&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Week-24&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Week-25&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 06:39:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-amp-Max-Selection-from-slicer/m-p/4014868#M158190</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-06-28T06:39:12Z</dc:date>
    </item>
  </channel>
</rss>

