<?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: slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3202557#M116475</link>
    <description>&lt;P&gt;Do you want to take all the values, or only the Min and Max value before the Min_Hour?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to take all values in form of tables, then you can use the following,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var _MinHour = MIN (Table[Hour])
var _MaxHour = MAX (Table[Hour])

_UnderMin = 
    FILTER(
        DISTINCT (ALL(Table[Hour])), 
        Table[Hour] &amp;lt; _MinHour
    )

_AboveMax = 
    FILTER(
        DISTINCT (ALL(Table[Hour])), 
        Table[Hour] &amp;gt; _MaxHour
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The _UnderMin will return you all the values below the Minimum selected value and _AboveMax will return all the values greater than the selected value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want the Minimum value (0), Max value below the Selected Minimum Value, Minimum value selected above the Selected Max Value (24) and the Max Value, you can use the following DAX Codes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var _MinHour = MIN (Table[Hour])
var _MaxHour = MAX (Table[Hour])

_MinHourAllValues = MIN (ALL(Table[Hour]))
_MaxHourAllValues = MAX (ALL(Table[Hour]))

_Max_Value_Below_Minimum = 
    MAXX (
        FILTER (
               ALL(Table),
                
        Table[Hour]
    )
    
_Max_Value_Below_Minimum = 
    MAXX (
        FILTER (
            DISTINCT (ALL(Table[Hour])), 
            Table[Hour] &amp;lt; _MinHour
        ), 
        Table[Hour]
    )
    
_Min_Value_Above_Maximum = 
    MINX (
        FILTER (
            DISTINCT (ALL(Table[Hour])), 
            Table[Hour] &amp;gt; _MaxHour
        ), 
        Table[Hour]
    )
&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 24 Apr 2023 09:46:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-24T09:46:27Z</dc:date>
    <item>
      <title>slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3200889#M116358</link>
      <description>&lt;P&gt;I want to take the start and end value of the slicer for hour like this, i want to take start and end dynamically, how to dax query it&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 09:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3200889#M116358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-22T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3200993#M116364</link>
      <description>&lt;P&gt;You can use MIN and MAX functions for this,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To get Min Hour Value,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Min_Hour = MIN(Table[Hour])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get Max value,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAX_Hour = MAX(Table[Hour])&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 22 Apr 2023 13:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3200993#M116364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-22T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3202303#M116452</link>
      <description>&lt;P&gt;Ok, i've done it, how to take the values other than the selected range, from 0 to that Min_hour and max_hour to 23&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 07:42:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3202303#M116452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T07:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3202557#M116475</link>
      <description>&lt;P&gt;Do you want to take all the values, or only the Min and Max value before the Min_Hour?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to take all values in form of tables, then you can use the following,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var _MinHour = MIN (Table[Hour])
var _MaxHour = MAX (Table[Hour])

_UnderMin = 
    FILTER(
        DISTINCT (ALL(Table[Hour])), 
        Table[Hour] &amp;lt; _MinHour
    )

_AboveMax = 
    FILTER(
        DISTINCT (ALL(Table[Hour])), 
        Table[Hour] &amp;gt; _MaxHour
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The _UnderMin will return you all the values below the Minimum selected value and _AboveMax will return all the values greater than the selected value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want the Minimum value (0), Max value below the Selected Minimum Value, Minimum value selected above the Selected Max Value (24) and the Max Value, you can use the following DAX Codes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var _MinHour = MIN (Table[Hour])
var _MaxHour = MAX (Table[Hour])

_MinHourAllValues = MIN (ALL(Table[Hour]))
_MaxHourAllValues = MAX (ALL(Table[Hour]))

_Max_Value_Below_Minimum = 
    MAXX (
        FILTER (
               ALL(Table),
                
        Table[Hour]
    )
    
_Max_Value_Below_Minimum = 
    MAXX (
        FILTER (
            DISTINCT (ALL(Table[Hour])), 
            Table[Hour] &amp;lt; _MinHour
        ), 
        Table[Hour]
    )
    
_Min_Value_Above_Maximum = 
    MINX (
        FILTER (
            DISTINCT (ALL(Table[Hour])), 
            Table[Hour] &amp;gt; _MaxHour
        ), 
        Table[Hour]
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 09:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3202557#M116475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T09:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3204273#M116644</link>
      <description>&lt;P&gt;I tried this, the issue I am facing is, when i try undermin in another measure to calculate exp - current, I am getting blank values cz it is taking 0 as minhour and 23 as maxhour even when i select from a range...&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 05:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/slicer/m-p/3204273#M116644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-25T05:58:08Z</dc:date>
    </item>
  </channel>
</rss>

