<?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: Change measure based on number of selections in slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302441#M123248</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;- unfortunately this wil not work. The logic is that if there is 1 selection (in the same slicer) then add 22 to the measure, if there are 2 slicer selections (in the same slicer) than add 44. Your suggestion has multiply "*" which is not what is needed.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 13:21:10 GMT</pubDate>
    <dc:creator>Casperserven1</dc:creator>
    <dc:date>2023-06-26T13:21:10Z</dc:date>
    <item>
      <title>Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302396#M123239</link>
      <description>&lt;P&gt;Hi - I have a measure which I want to change depending on how many selections are made in a slicer.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;select 1 of 4 selections in my slicer then my value is 22 + [sum of something]&lt;/P&gt;&lt;P&gt;I&amp;nbsp;select 2 of 4 selections in my slicer then my value is 44 + [sum of something]&lt;/P&gt;&lt;P&gt;I&amp;nbsp;select 3 of 4 selections in my slicer then my value is 66&amp;nbsp; + [sum of something] etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried something like&amp;nbsp;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;FinalData&lt;/SPAN&gt;&lt;SPAN&gt;[Table]&lt;/SPAN&gt;&lt;SPAN&gt; ) = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;22&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;iF&lt;/SPAN&gt; &lt;SPAN&gt;ETC&lt;/SPAN&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will not work as count function only counts on table name etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any one any ideas??&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 12:58:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302396#M123239</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-26T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302414#M123242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
22 * COUNTROWS ( ALLSELECTED ( FinalData[Table] ) ) + [sum of something]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:04:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302414#M123242</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302418#M123243</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;please try below dax&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something like =&lt;BR /&gt;&lt;/SPAN&gt;VAR CNT =&amp;nbsp;&lt;SPAN&gt;COUNT(&amp;nbsp;ISFILTERED(&amp;nbsp;FinalData[Table]&amp;nbsp;)&lt;/SPAN&gt;&lt;BR /&gt;RETURN&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SWITCH (&amp;nbsp;CNT &amp;nbsp;, 1, 22,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CNT, 2, 44,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CNT, 3 , 66,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CNT , 4 , 88 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;THANK YOU!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:06:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302418#M123243</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-06-26T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302435#M123246</link>
      <description>&lt;P&gt;Hi Mahesh - thanks for replying - unfortunately you canmot put COUNT in front of ISFILTERED - it won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:18:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302435#M123246</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-26T13:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302441#M123248</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;- unfortunately this wil not work. The logic is that if there is 1 selection (in the same slicer) then add 22 to the measure, if there are 2 slicer selections (in the same slicer) than add 44. Your suggestion has multiply "*" which is not what is needed.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:21:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302441#M123248</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-26T13:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302496#M123253</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1 x 22 = 22&lt;BR /&gt;2 x 22 = 44&lt;/P&gt;
&lt;P&gt;3 x 22 = 66&lt;/P&gt;
&lt;P&gt;It's the same. Have you tried?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302496#M123253</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302508#M123255</link>
      <description>&lt;P&gt;Yes but 22 multiplying by the measure is not the same as 22 adding to the measure - remember this is 22 + measure and 44 + measure so in this case 22 * measure is not the same and 44 * measure is not the same.....&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:47:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302508#M123255</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-26T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302643#M123266</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused about your last response to&amp;nbsp;@tamerj1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"...&lt;SPAN&gt;remember this is 22 + measure and 44 + measure..."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I do what he is recommending, the result is exactly 22 + measure &amp;amp; 44 + measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 Slicer value) 10 + 22 = 32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 Slicer values) 30 + 44 = 74&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 Slicer values) 60 + 66 = 126&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It works for me no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only difference here is that if all 4 are selected, it adds 88, but you can remove this by checking to see if more than 3 values are selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's still not working, perhaps you can provide more detail?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 14:45:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302643#M123266</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-06-26T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302658#M123267</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;But&amp;nbsp;as per my code the measure is added not multiplied!!&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 14:55:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302658#M123267</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302716#M123275</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the same solution with the limit check of 3 slicer values selected.&amp;nbsp; With this logic, the measure will only return a value if 3 or less slicer values are selected.&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;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:32:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302716#M123275</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-06-26T15:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302745#M123278</link>
      <description>&lt;P&gt;Ok so lets assume that [sum of something] is 42. If you multiply 22 * 42 = 924. If you add 22 + 42 = 64&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302745#M123278</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-26T15:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302757#M123279</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;22 x number of selections (let's say 2) + 42 &lt;BR /&gt;= 22 x 2 + 42 &lt;BR /&gt;= 44 + 42 &lt;BR /&gt;= 82&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3302757#M123279</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T16:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304354#M123378</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;- thanks - will go away and try - this assumes of course that multiples of 22 are consistent where 1 selection might be 22 but 2 selections might be 75 and three selections might be 43 for instance ... but I'll go away and try out the suggestions above - thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:11:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304354#M123378</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-27T13:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304446#M123385</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340078" data-lia-user-login="WinterMist" class="lia-mention lia-mention-user"&gt;WinterMist&lt;/a&gt;&amp;nbsp; - Nathan -&amp;nbsp; many thanks - this solution works. Had to tweak it to make it work with my measure but all is good. Here is the entire measure I used incorporating most of your solution:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WorkforceAll = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;VAR&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; Multiplier&lt;/FONT&gt; = &lt;/SPAN&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;22&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; NumSelected&lt;/FONT&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;COUNTROWS&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;ALLSELECTED&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;( FinalData[Table] ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; Productz&lt;/FONT&gt; = &lt;FONT color="#008000"&gt;Multiplier&lt;/FONT&gt; * &lt;FONT color="#008000"&gt;NumSelected&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; Limit&lt;/FONT&gt; = &lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;IF&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;( &lt;FONT color="#008000"&gt;NumSelected&lt;/FONT&gt; &amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;FONT color="#008000"&gt;Productz&lt;/FONT&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; StartingNumber&lt;/FONT&gt; = &lt;FONT color="#008000"&gt;Limit&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; CurrentTurn&lt;/FONT&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;SELECTEDVALUE&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt; ( FinalData[Turn] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; CumulativeChanges&lt;/FONT&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;CALCULATE&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IBMeasures[&lt;FONT color="#800080"&gt;NHminusRetirees&lt;/FONT&gt;], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;ALLEXCEPT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;( FinalData, FinalData[Table], FinalData[Turn], FinalData[CourseDate] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FinalData[Turn] &amp;lt;= &lt;FONT color="#008000"&gt;CurrentTurn&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;VAR&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt; Result&lt;/FONT&gt; = &lt;FONT color="#008000"&gt;StartingNumber&lt;/FONT&gt; + &lt;FONT color="#008000"&gt;CumulativeChanges&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;RETURN&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;FONT color="#008000"&gt;Result&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:50:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304446#M123385</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-27T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304502#M123388</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad this was helpful to you; but all I did was take the solution from&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;amp; seperate it into VARs; for readability &amp;amp; easier debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to become good at DAX, follow&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Study all his solutions.&lt;/P&gt;&lt;P&gt;After [Russo &amp;amp; Ferrari],&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;is #2 in my book.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304502#M123388</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-06-27T14:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure based on number of selections in slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304549#M123390</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340078" data-lia-user-login="WinterMist" class="lia-mention lia-mention-user"&gt;WinterMist&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wow! I feel flattered. I need to be realistic and admit that It will be a long journey to reach to the point where you have placed me. Rosso and Ferrari are incomparable and they won't be for a very long time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 16:55:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-based-on-number-of-selections-in-slicer/m-p/3304549#M123390</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-27T16:55:35Z</dc:date>
    </item>
  </channel>
</rss>

