<?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: How to create a Slicer based on a range of Calculated Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789523#M4465</link>
    <description>&lt;P&gt;will try in morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by the way, what is the role of the countrow is making this dAX work&lt;/P&gt;&lt;PRE&gt;COUNTROWS ( '1Calculation' ),&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 14:03:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-11T14:03:04Z</dc:date>
    <item>
      <title>How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/787892#M4399</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp; like a slicer that has a range of value, where upon selcting, it will pick a Measure that falls within the range. I tried going thru many examples in the internet but have not come a cross one that address my challenge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imaging I have 2 tables (i) Country GDP (ii) Country Defence spending .. I create a measure of DefenceSpending / Country GDP = X%&lt;/P&gt;&lt;P&gt;Using the attached file, the end result if to be able to show the following when I select the slicer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am looking for is to select the slicer below and PowerBI table return only Country with measure within the selected range&lt;/P&gt;&lt;P&gt;I have created a new table (without relationship), with the below 4 scenarios BUT i dont know how to make the slicer full the data I wanted&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLICER&lt;BR /&gt;0% &amp;lt; 1.0% This should select Myamar, Malaysia, Pakistan, Brunei, Korea&lt;BR /&gt;1.0% &amp;lt; 2.0% This should select Philippine, Nepal, Bangladesh, Vietnam, New Zealand&lt;BR /&gt;2.0% &amp;lt; 3.0% This should select Sri Lanka, Japan, HongKong&lt;BR /&gt;3% or greater This should select Singapore, Thailand, China Taiwan, Indonesia &amp;amp; Australia&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:45:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/787892#M4399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T06:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/788203#M4409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;create a slicer like this:&lt;/P&gt;&lt;PRE&gt;filterMeasure =
SWITCH (
    TRUE ();
    SELECTEDVALUE ( Intervals[Interval] ) = "0% &amp;lt; 1.0%"; CALCULATE (
        COUNTROWS ( GDP );
        FILTER ( GDP; [Defence vs GDP] &amp;gt;= 0 &amp;amp;&amp;amp; [Defence vs GDP] &amp;lt; 1 )
    );
    SELECTEDVALUE ( Intervals[Interval] ) = "1.0% &amp;lt; 2.0%"; CALCULATE (
        COUNTROWS ( GDP );
        FILTER ( GDP; [Defence vs GDP] &amp;gt;= 1 &amp;amp;&amp;amp; [Defence vs GDP] &amp;lt; 2 )
    );
    SELECTEDVALUE ( Intervals[Interval] ) = "2.0% &amp;lt; 3.0%"; CALCULATE (
        COUNTROWS ( GDP );
        FILTER ( GDP; [Defence vs GDP] &amp;gt;= 2 &amp;amp;&amp;amp; [Defence vs GDP] &amp;lt; 3 )
    );
    SELECTEDVALUE ( Intervals[Interval] ) = "3.0% &amp;lt;"; CALCULATE ( COUNTROWS ( GDP ); FILTER ( GDP; [Defence vs GDP] &amp;gt;= 3 ) );
    0
)&lt;/PRE&gt;&lt;P&gt;and add this measure to the filter part of you visual&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;S&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 11:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/788203#M4409</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-10T11:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/788768#M4429</link>
      <description>&lt;P&gt;I have tried this on my project (which have same logic).. However I got an error .. Can you help me identify and resolve the error I am getting at the bottom "calculate function is required".. Many thinks&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 00:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/788768#M4429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-11T00:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789083#M4437</link>
      <description>&lt;P&gt;your calculate statements looks like this:&lt;/P&gt;&lt;PRE&gt;CALCULATE (
    COUNTROWS ( '1Calculation' ),
    [Services Connect Rate (NWS)],
    FILTER (
        '1Calculation',
        [Services Connect Rate (NWS)] &amp;gt; -1000
            &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; 0.01
    )
) &lt;/PRE&gt;&lt;P&gt;After the COUNTROWS-function, you reference [Services Connect Rate (NWS)] which makes no sense. What are you trying to achive with this reference?&lt;BR /&gt;&lt;BR /&gt;Next time, could post the code instead of a snapshot? It makes helping you much easier if I don't have to decipher a unclear image first.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:49:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789083#M4437</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-11T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789216#M4444</link>
      <description>&lt;P&gt;Start off with an existing Measure I created some time ago&amp;nbsp; which will return a XX%&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Services Connect Rate (NWS) = DIVIDE([DBF+UU+U (NWS)],[DBF(ATU)])&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With your help, I am hoping to create the Slicer Measure using your guide&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CR Measure = SWITCH ( TRUE (),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.0%&amp;lt;1.0",CALCULATE(COUNTROWS('1Calculation'),[Services Connect Rate (NWS)],FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;-1000 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .01)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.1%&amp;lt;2.0",CALCULATE(COUNTROWS('1Calculation'),[Services Connect Rate (NWS)],FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.01 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .02)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.2%&amp;lt;3.0",CALCULATE(COUNTROWS('1Calculation'),[Services Connect Rate (NWS)],FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.02 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .03)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.3%&amp;lt;4.0",CALCULATE(COUNTROWS('1Calculation'),[Services Connect Rate (NWS)],FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.03 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .04)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.4%&amp;lt;5.0",CALCULATE(COUNTROWS('1Calculation'),[Services Connect Rate (NWS)],FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.04 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .05)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="5.0%+",CALCULATE(COUNTROWS('1Calculation'),[Services Connect Rate (NWS)],FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.05),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Sep 2019 09:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789216#M4444</guid>
      <dc:creator>malcolmwunwl</dc:creator>
      <dc:date>2019-09-11T09:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789238#M4447</link>
      <description>&lt;P&gt;"After the COUNTROWS-function, you reference [Services Connect Rate (NWS)] which makes no sense. What are you trying to achive with this reference?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reply, If I select from the slicer, &lt;SPAN&gt;"1.0%&amp;lt;2.0&lt;/SPAN&gt;", I want the Table to show the attach Cicrle in BLUE&lt;/P&gt;&lt;P&gt;&lt;img /&gt;ed&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 09:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789238#M4447</guid>
      <dc:creator>malcolmwunwl</dc:creator>
      <dc:date>2019-09-11T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789320#M4456</link>
      <description>&lt;P&gt;The calculate-function takes these arguments:&lt;/P&gt;&lt;PRE&gt;CALCULATE(&amp;lt;expression&amp;gt;,&amp;lt;filter1&amp;gt;,&amp;lt;filter2&amp;gt;…)&lt;/PRE&gt;&lt;P&gt;and the way you have written you code you are using the measure [Services Connect Rate (NWS)] as a filter. But a measure by itself like this is not a valid filter argument. Try writting your code like this:&lt;/P&gt;&lt;PRE&gt;SELECTEDVALUE ( SlicerNWS[CR NWS Range] ) = "0.0%&amp;lt;1.0", CALCULATE (
    COUNTROWS ( '1Calculation' ),
    FILTER (
        '1Calculation',
        [Services Connect Rate (NWS)] &amp;gt; -1000
        &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .01
    )
)&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789320#M4456</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-11T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789523#M4465</link>
      <description>&lt;P&gt;will try in morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by the way, what is the role of the countrow is making this dAX work&lt;/P&gt;&lt;PRE&gt;COUNTROWS ( '1Calculation' ),&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 14:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789523#M4465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-11T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789668#M4471</link>
      <description>The first argument to calculate is a tabel. When using the calculate function it changes the context of how that table is filtered. Countrows counts the rows of the table after it has been filtered. But it not just the filter-function that filters the table, slicers and axis in a report also adds to how the table is filtered.&lt;BR /&gt;&lt;BR /&gt;I used countrows since i don't know how your data looks like. You could use distinct(table[customer id]) instead, or sum(table[sales])</description>
      <pubDate>Wed, 11 Sep 2019 16:01:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/789668#M4471</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-11T16:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/790369#M4494</link>
      <description>&lt;P&gt;Hi I still get an error after using this DAX&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CR Measure = SWITCH ( TRUE (),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.0%&amp;lt;1.0",CALCULATE(COUNTROWS('1Calculation'),FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;-1000 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .01)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.1%&amp;lt;2.0",CALCULATE(COUNTROWS('1Calculation'),FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.01 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .02)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.2%&amp;lt;3.0",CALCULATE(COUNTROWS('1Calculation'),FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.02 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .03)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.3%&amp;lt;4.0",CALCULATE(COUNTROWS('1Calculation'),FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.03 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .04)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="0.4%&amp;lt;5.0",CALCULATE(COUNTROWS('1Calculation'),FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.04 &amp;amp;&amp;amp; [Services Connect Rate (NWS)] &amp;lt; .05)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(SlicerNWS[CR NWS Range])="5.0%+",CALCULATE(COUNTROWS('1Calculation'),FILTER('1Calculation',[Services Connect Rate (NWS)]&amp;gt;=.05),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;0))&lt;/SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/790369#M4494</guid>
      <dc:creator>malcolmwunwl</dc:creator>
      <dc:date>2019-09-12T08:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/791128#M4524</link>
      <description>&lt;P&gt;I think you might have misplaced a paranthesis. Your last case statment and else-value looks like this&lt;/P&gt;&lt;PRE&gt;SELECTEDVALUE ( SlicerNWS[CR NWS Range] ) = "5.0%+", CALCULATE (
        COUNTROWS ( '1Calculation' ),
        FILTER ( '1Calculation', [Services Connect Rate (NWS)] &amp;gt;= 0.05 ),
    0
))&lt;/PRE&gt;&lt;P&gt;when it should have been like this&lt;/P&gt;&lt;PRE&gt;SELECTEDVALUE ( SlicerNWS[CR NWS Range] ) = "5.0%+", CALCULATE (
        COUNTROWS ( '1Calculation' ),
        FILTER ( '1Calculation', [Services Connect Rate (NWS)] &amp;gt;= 0.05 )
    ),
    0
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2019 22:27:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/791128#M4524</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-12T22:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/791743#M4546</link>
      <description>&lt;P&gt;Formula seem acceptable, however the look is what i am hoping for.. a web version is publish.. I am using GDP vs Defense spend example instead...&amp;nbsp;&lt;FONT&gt;&lt;A href="https://app.powerbi.com/view?r=eyJrIjoiNzc5YTU3MjUtMjY0OS00NGEzLWIxYzEtOTNlYjA0ZmVkMTQ2IiwidCI6IjdlNDk4MjVlLWQxODAtNDMxNS1iNTZlLTNmYmUzZDliYThiZSJ9" target="_blank"&gt;https://app.powerbi.com/view?r=eyJrIjoiNzc5YTU3MjUtMjY0OS00NGEzLWIxYzEtOTNlYjA0ZmVkMTQ2IiwidCI6IjdlNDk4MjVlLWQxODAtNDMxNS1iNTZlLTNmYmUzZDliYThiZSJ9&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;i the screen shot, the filter is selecting the correct country in the chart BUT, the value incorrectly showing 100.00%&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;DAX&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FilterMeasure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRUE (),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE ('what we want to achieve'[SLICER]) = "0.0%&amp;lt;1.0%", CALCULATE (COUNTROWS (GDP), FILTER ( GDP,[Defense%] &amp;gt;= 0 &amp;amp;&amp;amp; [Defense%] &amp;lt; 0.01 )),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE ('what we want to achieve'[SLICER]) = "1.0%&amp;lt;2.0%", CALCULATE (COUNTROWS (GDP), FILTER ( GDP,[Defense%] &amp;gt;= 0.01 &amp;amp;&amp;amp; [Defense%] &amp;lt; 0.02 )),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE ('what we want to achieve'[SLICER]) = "2.0%&amp;lt;3.0%", CALCULATE (COUNTROWS (GDP), FILTER ( GDP,[Defense%] &amp;gt;= 0.02 &amp;amp;&amp;amp; [Defense%] &amp;lt; 0.03 )),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE ('what we want to achieve'[SLICER]) = "3.0%+", CALCULATE (COUNTROWS (GDP), FILTER ( GDP,[Defense%] &amp;gt;= 0.03)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),0)&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;</description>
      <pubDate>Fri, 13 Sep 2019 12:22:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/791743#M4546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-13T12:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/791834#M4554</link>
      <description>&lt;P&gt;[filterMeasure] is only meant to do just that, it filters the data based on your slicer selection, and returns the number of rows which satisfy the current filter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you have not posted any data or pbix-file, I have scraped together some data which resembles your data here:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/26vd8hr3pn2p7r0/How%20to%20create%20a%20Slicer%20based%20on%20a%20range%20of%20Calculated%20Measure.pbix?dl=0" target="_self"&gt;GDP vs Military expenditure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I don't know how your data look like, you might have to consider the relationship between your tables. And also possibly count the 'Military expenditure'-table instead of the GDP-table&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 13:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/791834#M4554</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-13T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/792272#M4574</link>
      <description>&lt;P&gt;This is brillaint,, i replicatre what you did and it works&amp;nbsp; ,,,,,, so great ,,, i see how u use visual filter, count row to amke this work...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;[filterMeasure] is only meant to do just that, it filters the data based on your slicer selection, and returns the number of rows which satisfy the current filter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you have not posted any data or pbix-file, I have scraped together some data which resembles your data here:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/26vd8hr3pn2p7r0/How%20to%20create%20a%20Slicer%20based%20on%20a%20range%20of%20Calculated%20Measure.pbix?dl=0" target="_self"&gt;GDP vs Military expenditure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I don't know how your data look like, you might have to consider the relationship between your tables. And also possibly count the 'Military expenditure'-table instead of the GDP-table&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 00:25:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/792272#M4574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-14T00:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/1535418#M30162</link>
      <description>&lt;P&gt;hi, what setting you use for visuals that needs to use the filterMeasure,&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg, if i add 1 visual with the exact axis, using your pbix file, it didnt filter like the rests of the visuals.&lt;/P&gt;&lt;P&gt;Must be some setting i missed out for the new visual&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 04:12:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/1535418#M30162</guid>
      <dc:creator>rubymaya</dc:creator>
      <dc:date>2020-12-07T04:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/1535479#M30165</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;see the attached from the sample pbix, the visual i just added(with exact axis), doesnt filter correctly. (highlighted)&lt;/P&gt;&lt;P&gt;unless if i copy the visual directly, then the filter follows. That's what i meant earlier, there must be some step or setting i&amp;nbsp; missed to make it works automatically with the filterMeasure created.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 06:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/1535479#M30165</guid>
      <dc:creator>rubymaya</dc:creator>
      <dc:date>2020-12-07T06:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Slicer based on a range of Calculated Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/1536064#M30176</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;&amp;nbsp; found the problem, I didnt put the filter to visuals I want to slice... worth to mention here that we need to filter the related visuals to call out the filterMeasure ----&amp;gt; filterMeasure is greater than 0, after that everything works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this excellent sample, you saved my day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 09:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Slicer-based-on-a-range-of-Calculated-Measure/m-p/1536064#M30176</guid>
      <dc:creator>rubymaya</dc:creator>
      <dc:date>2020-12-07T09:10:32Z</dc:date>
    </item>
  </channel>
</rss>

