<?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 Slicer min and max selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-min-and-max-selection/m-p/3213282#M117251</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;I am using the slicer to select hours from 0 to 23, and whatever that is selected between the slicer is selected working hours and rest should be considered as not working hours, and based on these i need to do value a - b for selected hours and assumed value c - d for non selected hours&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;for this when I tried MIN( table[column]) and MAX(table[column]) is not working everywhere, it is working on card and table but not on calculations&lt;BR /&gt;Based on the slicer selection if i try selecting in checkbox like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am getting 0 and 23 as not working hour and rest all as working, since min and max is taking 0 and 23 and not the slicer selected value.&amp;nbsp;&lt;BR /&gt;Kindly help how to select the ranges dynamically and not 0 or 23 as min and max&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 06:12:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-01T06:12:23Z</dc:date>
    <item>
      <title>Slicer min and max selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-min-and-max-selection/m-p/3213282#M117251</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;I am using the slicer to select hours from 0 to 23, and whatever that is selected between the slicer is selected working hours and rest should be considered as not working hours, and based on these i need to do value a - b for selected hours and assumed value c - d for non selected hours&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;for this when I tried MIN( table[column]) and MAX(table[column]) is not working everywhere, it is working on card and table but not on calculations&lt;BR /&gt;Based on the slicer selection if i try selecting in checkbox like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am getting 0 and 23 as not working hour and rest all as working, since min and max is taking 0 and 23 and not the slicer selected value.&amp;nbsp;&lt;BR /&gt;Kindly help how to select the ranges dynamically and not 0 or 23 as min and max&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 06:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-min-and-max-selection/m-p/3213282#M117251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-01T06:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer min and max selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-min-and-max-selection/m-p/3214704#M117347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) My test data is the same as yours.&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_slicermin = 

MINX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_slicermax = 

MAXX(FILTER(ALLSELECTED('Table'),'Table'[Hour]),'Table'[Hour])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3) Then the result is as follows.&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;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 02:49:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-min-and-max-selection/m-p/3214704#M117347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-02T02:49:32Z</dc:date>
    </item>
  </channel>
</rss>

