<?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: Measure that takes in only specified filter context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4665745#M178691</link>
    <description>&lt;P&gt;Thanks, the suggested DAX expression works for me. Toggling with the interactions wouldn't work in this case since I need that measure for other downstream calculations.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 01:54:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-04-24T01:54:23Z</dc:date>
    <item>
      <title>Measure that takes in only specified filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664293#M178631</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help in creating a measure that would always show the total_weights based on the two active filters selected, i.e., mpId and riskProfile. See snapshot below for context. Currently, my total_weights measure is showing the right number (i.e., 70% based on my snapshot below) when both active filters are applied. However, the measure value is refreshed when I select a row in the table visual (e.g., The measure is updated as 10% if I select acId = 10921081 from the table visual). Is there a way to create a measure that takes in only the 2 active filters (mpId and riskProfile) and ignores the rest?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;total_weights =&lt;BR /&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mp_mix&lt;/SPAN&gt;&lt;SPAN&gt;[percent]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mp_mix&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Apr 2025 06:16:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664293#M178631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-23T06:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that takes in only specified filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664307#M178634</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&amp;nbsp;,&lt;SPAN&gt;If you want to remove all filters except for&amp;nbsp;&lt;SPAN class=""&gt;mpId&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;SPAN class=""&gt;riskProfile&lt;SPAN&gt;, you can use the&amp;nbsp;&lt;SPAN class=""&gt;ALL&lt;SPAN&gt;&amp;nbsp;function combined with&amp;nbsp;&lt;SPAN class=""&gt;KEEPFILTERS&lt;SPAN&gt;&amp;nbsp;to keep only the desired filters:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DAX&lt;BR /&gt;total_weights =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(mp_mix[percent]),&lt;BR /&gt;ALL(mp_mix),&lt;BR /&gt;KEEPFILTERS(mp_mix[mpId]),&lt;BR /&gt;KEEPFILTERS(mp_mix[riskProfile])&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 06:27:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664307#M178634</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-23T06:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that takes in only specified filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664351#M178637</link>
      <description>&lt;P&gt;I would not change the measure, but &lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=powerbi-desktop" target="_self"&gt;edit the interactions&lt;/A&gt; on the report page.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 06:55:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664351#M178637</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-04-23T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that takes in only specified filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664580#M178647</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all Percentage is a Non aditive measure. It cannot be summed up. It should be calculated inside in a measure itself.&lt;/P&gt;
&lt;P&gt;Now, the eaisest option is which&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226664" data-lia-user-login="sjoerdvn" class="lia-mention lia-mention-user"&gt;sjoerdvn&lt;/a&gt;&amp;nbsp; mentioned.--&amp;gt; Turned off the Edit interaction.&lt;/P&gt;
&lt;P&gt;In dax, You need to igonore the filters from acid column .&lt;BR /&gt;Below code can work for you.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;total weight = 
CALCULATE(
    SUM( 'Table'[Percent] ),
ALLEXCEPT('Table','Table'[Cateory],'Table'[RiskProfile])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below screenshot&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Attaching the pbix file for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;sanalytics&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 08:58:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4664580#M178647</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2025-04-23T08:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that takes in only specified filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4665745#M178691</link>
      <description>&lt;P&gt;Thanks, the suggested DAX expression works for me. Toggling with the interactions wouldn't work in this case since I need that measure for other downstream calculations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 01:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-takes-in-only-specified-filter-context/m-p/4665745#M178691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-24T01:54:23Z</dc:date>
    </item>
  </channel>
</rss>

