<?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: Filtering a table using measures based on slicers in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3331849#M1111963</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360451" data-lia-user-login="daniel_baciu" class="lia-mention lia-mention-user"&gt;daniel_baciu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using field parameters, check it out here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If I answered your question, please mark my post as solution, Appreciate your Kudos&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Follow on linkedin" href="https://www.linkedin.com/in/idriss-shatila/" target="_self" rel="nofollow noopener noreferrer"&gt;Follow me on Linkedin&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 20:52:26 GMT</pubDate>
    <dc:creator>Idrissshatila</dc:creator>
    <dc:date>2023-07-14T20:52:26Z</dc:date>
    <item>
      <title>Filtering a table using measures based on slicers</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3331568#M1111902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a very easy question for the experienced users.&lt;/P&gt;&lt;P&gt;I have a table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to show a visual (table/matrix) showing only the changes by project from a scenario to another. For example - result of changes in JUL scenario vs APR scenario should look like below, as there is only one change in project A between the 2 scenarios in the same period:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Currently, this is managed to be calculated using 2 manual measures where i filtered APR (see below) and JUL separately&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;APR = 
CALCULATE(
    SUM(Data[Value]),
    Filter(
        'data',
        'data'[Scenario] = "APR Scenario"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and another measure ("Changes") where i deducted APR measure result from JUL measure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Changes = [JUL] - [APR]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question is - how can i automatically calculate the Changes by asking the user to select in a slicer the first scenario and the second scenario (like below)?&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;User should select in the first one JUL and in the second one APR, and the result should appear in a table/matrix visual like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://drive.google.com/file/d/1zwKDCoFuUOHzGLsfZRywSXlRdh-20o6d/view?usp=sharing" target="_self"&gt;here&lt;/A&gt; the pbix.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 16:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3331568#M1111902</guid>
      <dc:creator>daniel_baciu</dc:creator>
      <dc:date>2023-07-14T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a table using measures based on slicers</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3331849#M1111963</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360451" data-lia-user-login="daniel_baciu" class="lia-mention lia-mention-user"&gt;daniel_baciu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using field parameters, check it out here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If I answered your question, please mark my post as solution, Appreciate your Kudos&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Follow on linkedin" href="https://www.linkedin.com/in/idriss-shatila/" target="_self" rel="nofollow noopener noreferrer"&gt;Follow me on Linkedin&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 20:52:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3331849#M1111963</guid>
      <dc:creator>Idrissshatila</dc:creator>
      <dc:date>2023-07-14T20:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a table using measures based on slicers</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3340218#M1114228</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360451" data-lia-user-login="daniel_baciu" class="lia-mention lia-mention-user"&gt;daniel_baciu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Change = IF(HASONEVALUE(Data[Scenario]),SUM(Data[Value]),CALCULATE(MAX(Data[Value])-MIN(Data[Value]),ALLSELECTED(Data[Scenario])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 07:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3340218#M1114228</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-07-20T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a table using measures based on slicers</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3341329#M1114503</link>
      <description>&lt;P&gt;Many Thanks!&lt;BR /&gt;This works fine but, i didn't realize before one additional complexity. Your solutions works fine when there are the same number &amp;amp; name of projects in every scenario (project A, B, C appear in every scenario).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately your solution doesn't work when projects disapear or new projects appear in future scenarios... I reattached your solution and have updated OCT Scenario (removed project C and added Project D).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution of the Change should be as follows:&lt;/P&gt;&lt;P&gt;Project&amp;nbsp; &amp;nbsp; Change&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -50&lt;/P&gt;&lt;P&gt;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i kindly ask you to have another look to see if you can provide an updated solution to this specific issue?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File is &lt;A href="https://drive.google.com/file/d/1zT2ZGgerMWeNaXOJ4IYBrCWQ5-5GOtDR/view?usp=sharing" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:54:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-using-measures-based-on-slicers/m-p/3341329#M1114503</guid>
      <dc:creator>daniel_baciu</dc:creator>
      <dc:date>2023-07-20T15:54:00Z</dc:date>
    </item>
  </channel>
</rss>

