<?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 DAX expression for a numeric range slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1751230#M36493</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've selected the column month to work as a numeric range slicer. Is there any DAX expression to get the 2 values introduced in the slicer? I've tried MIN and MAX with SELECTEDVALUE but is not working. Or I've to use the slicer with parameters instead of the column? Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 08:23:18 GMT</pubDate>
    <dc:creator>linlab</dc:creator>
    <dc:date>2021-03-29T08:23:18Z</dc:date>
    <item>
      <title>DAX expression for a numeric range slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1751230#M36493</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've selected the column month to work as a numeric range slicer. Is there any DAX expression to get the 2 values introduced in the slicer? I've tried MIN and MAX with SELECTEDVALUE but is not working. Or I've to use the slicer with parameters instead of the column? Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1751230#M36493</guid>
      <dc:creator>linlab</dc:creator>
      <dc:date>2021-03-29T08:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX expression for a numeric range slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1752373#M36535</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="293298" data-lia-user-login="linlab" class="lia-mention lia-mention-user"&gt;linlab&lt;/a&gt; , You can use MinX/MaxX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = &lt;BR /&gt;var _max = maxx(ALLSELECTED('Date'),'Date'[Month])&lt;BR /&gt;var _min = minx(ALLSELECTED('Date'),'Date'[Month])&lt;BR /&gt;return&lt;BR /&gt;calculate(countrows(Table), filter(Date, Date[Month] &amp;gt;=Min &amp;amp;&amp;amp; 'Date'[Month] &amp;lt;=Max ))&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1752373#M36535</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-29T16:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX expression for a numeric range slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1752802#M36574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tested your solution but it returns the max and min value in the table instead of the values introduced in the slicer. In this example, the month max value in the table is 9 but the value introduced in the slicer is 12 so the measure should return 12. Have you another idea?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 21:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1752802#M36574</guid>
      <dc:creator>linlab</dc:creator>
      <dc:date>2021-03-29T21:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX expression for a numeric range slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1752882#M36580</link>
      <description>&lt;P&gt;It's very simple actually.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;[The Max] = max( T[month] )
[The Min] = min( T[month] )&lt;/LI-CODE&gt;&lt;P&gt;where T is the table the 'month' field in the slicer lives in.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 22:08:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1752882#M36580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T22:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX expression for a numeric range slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1754141#M36601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As you can see in my previous message to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;, this expression also gives the max value in the table, not the value introduced in the slicer.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 09:35:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-expression-for-a-numeric-range-slicer/m-p/1754141#M36601</guid>
      <dc:creator>linlab</dc:creator>
      <dc:date>2021-03-30T09:35:42Z</dc:date>
    </item>
  </channel>
</rss>

