<?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 Dynamic slicer on measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873154#M40172</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a great video on youtube how to use a measure on a slicer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?app=desktop&amp;amp;v=8Nt6sHJE_RE" target="_blank"&gt;https://www.youtube.com/watch?app=desktop&amp;amp;v=8Nt6sHJE_RE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working fine and really simple to set up, but anyone an idea how you would need to change that to filter on a Value from - Value to?&lt;/P&gt;&lt;P&gt;Now it's always value &amp;lt;= selectedvalue, but I would like to have&amp;nbsp; &amp;nbsp;Min(selectedvalue) &amp;gt;= value &amp;lt;= Max(selectedvalue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 13:55:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-31T13:55:55Z</dc:date>
    <item>
      <title>Dynamic slicer on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873154#M40172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a great video on youtube how to use a measure on a slicer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?app=desktop&amp;amp;v=8Nt6sHJE_RE" target="_blank"&gt;https://www.youtube.com/watch?app=desktop&amp;amp;v=8Nt6sHJE_RE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working fine and really simple to set up, but anyone an idea how you would need to change that to filter on a Value from - Value to?&lt;/P&gt;&lt;P&gt;Now it's always value &amp;lt;= selectedvalue, but I would like to have&amp;nbsp; &amp;nbsp;Min(selectedvalue) &amp;gt;= value &amp;lt;= Max(selectedvalue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 13:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873154#M40172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-31T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic slicer on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873268#M40175</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you need two values from the slicer (min and max), you have to use ALLSELECTED and then get the min and max.&lt;/P&gt;&lt;P&gt;Try the following approach:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Between = 
VAR vSelected = ALLSELECTED(Slicer[MySlicer])
VAR vMin = CALCULATE(MIN(Slicer[MySlicer]), vSelected)
VAR vMax = CALCULATE(MAX(Slicer[MySlicer]), vSelected)
VAR vCurrentSales = SUM(FactTable[Values])
RETURN
    SWITCH(
        TRUE(),
        vCurrentSales &amp;gt; vMin &amp;amp;&amp;amp; vCurrentSales &amp;lt;= vMax, vCurrentSales,
        BLANK()
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;If you need any help please let me know.&lt;/DIV&gt;&lt;DIV&gt;If I answered your question I would be happy if you could mark my post as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; and give it a thumbs up &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best regards&lt;/DIV&gt;&lt;DIV&gt;Denis&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Blog: &lt;A title="Click here!" href="https://whatthefact.bi/?utm_source=powerbicommunity&amp;amp;utm_medium=link&amp;amp;utm_campaign=forum" target="_blank" rel="noopener"&gt;&lt;U&gt;WhatTheFact.bi&lt;/U&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;Follow me: &lt;A title="Click here!" href="https://twitter.com/DenSelimovic" target="_blank" rel="noopener"&gt;&lt;U&gt;twitter.com/DenSelimovic&lt;/U&gt;&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 May 2021 15:08:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873268#M40175</guid>
      <dc:creator>selimovd</dc:creator>
      <dc:date>2021-05-31T15:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic slicer on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873342#M40177</link>
      <description>&lt;P&gt;great THX!&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 15:47:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-slicer-on-measure/m-p/1873342#M40177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-31T15:47:27Z</dc:date>
    </item>
  </channel>
</rss>

