<?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: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4792331#M62612</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for confirming, and as &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/780072"&gt;@SamWiseOwl&lt;/a&gt;&amp;nbsp;showed, ISINSCOPE is a good approach for detecting the hierarchy level. If your current measure isn’t giving the expected result, it may be due to how the filter context is being applied when drilling down in your custom visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the Color level, you’ll need to make sure the calculation ignores the Company filter so it matches the original average you posted. You can do this by adapting the SWITCH pattern to use REMOVEFILTERS or ALL for that level, for example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH(
    TRUE(),
    ISINSCOPE(Cars[make]),
        AVERAGE(Cars[value]),
    ISINSCOPE(Cars[color]),
        CALCULATE(AVERAGE(Cars[value]), REMOVEFILTERS(Cars[make])),
    BLANK()
)&lt;/LI-CODE&gt;
&lt;P&gt;If you can share the dataset or a sample version of your measure, it will be easier to pinpoint why your current code is not aligning with the Matrix visual output.&lt;/P&gt;
&lt;P&gt;You could also share .pbix file without any sensitive data. Please follow this guide on how to share .pbix.:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Please reach out for further assistance.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Aug 2025 14:14:49 GMT</pubDate>
    <dc:creator>v-veshwara-msft</dc:creator>
    <dc:date>2025-08-10T14:14:49Z</dc:date>
    <item>
      <title>Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4785881#M62485</link>
      <description>&lt;P&gt;Hello Power BI community,&amp;nbsp;I am customizing my visual&lt;/P&gt;&lt;P&gt;I am facing a fairly common situation but do not know the optimal way to handle it, I hope everyone can support or share experiences.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Problem details:&lt;BR /&gt;I have a measure called Avg Price, which calculates the average price of a car according to each color (Color) of the car.&lt;/P&gt;&lt;P&gt;When at level 1 (only Color), the measure returns the exact value as expected:&lt;/P&gt;&lt;P&gt;Black: 28,564.80&lt;/P&gt;&lt;P&gt;Pale White: 27,483.89&lt;/P&gt;&lt;P&gt;Red: 28,736.32&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidAnthony_0-1754279368605.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288397i7720EEF390F20E81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidAnthony_0-1754279368605.png" alt="DavidAnthony_0-1754279368605.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidAnthony_1-1754279375379.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288398i4D468BD80C580313/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidAnthony_1-1754279375379.png" alt="DavidAnthony_1-1754279375379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":right_arrow:"&gt;➡️&lt;/span&gt;Figures 1 and 2 show that these values are displayed correctly according to each color.&lt;/P&gt;&lt;P&gt;However, when drilling down to level 2, adding Company (car manufacturer), the table now creates subrows for each manufacturer, and totals them for each color → the value is changed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidAnthony_2-1754279387145.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288399iBC4506D0F5B4B457/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidAnthony_2-1754279387145.png" alt="DavidAnthony_2-1754279387145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":right_arrow:"&gt;➡️&lt;/span&gt;Figure 3 clearly illustrates this: Black includes many brands such as Acura, Audi, BMW... and the value on the Black line is recalculated as the Sum of subrows, not the Average of all Black colors as before.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":question_mark:"&gt;❓&lt;/span&gt;Question:&lt;BR /&gt;I want the Color line at the higher level to keep the original Average value, even though I have drilled down and displayed each brand (Company) below.&lt;/P&gt;&lt;P&gt;Is there a way to keep the values:&lt;/P&gt;&lt;P&gt;Black: 28,564.80&lt;/P&gt;&lt;P&gt;Pale White: 27,483.89&lt;/P&gt;&lt;P&gt;Red: 28,736.32&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidAnthony_3-1754279418412.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288400i78C943476E1CD478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidAnthony_3-1754279418412.png" alt="DavidAnthony_3-1754279418412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even when I have drilled down to Company based on the dataview power bi api returned as in figure 4&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;H3&gt;DavidAnthony&lt;/H3&gt;</description>
      <pubDate>Mon, 04 Aug 2025 14:27:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4785881#M62485</guid>
      <dc:creator>DavidAnthony</dc:creator>
      <dc:date>2025-08-04T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4786435#M62498</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is the issue occuring when you bring the data in from the source or specifically in the Power BI visuals?&lt;BR /&gt;I assume it is something to do with the number of items included in the average.&lt;BR /&gt;&lt;BR /&gt;I've made a mock up for myself and anyone else who comes to help.&lt;BR /&gt;Please look at it and see if you can make it closer to the problem.&lt;BR /&gt;&lt;BR /&gt;One thing you could try is using a SWITCH function to do different calculations on each line.&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Avg calculated seperate =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&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&lt;SPAN&gt;Cars&lt;/SPAN&gt;&lt;SPAN&gt;[value]&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;Cars&lt;/SPAN&gt;&lt;SPAN&gt;[id]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"Something else"&lt;/SPAN&gt; &lt;SPAN&gt;--if on the grand total return something else&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 09:15:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4786435#M62498</guid>
      <dc:creator>SamWiseOwl</dc:creator>
      <dc:date>2025-08-04T09:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4786865#M62511</link>
      <description>&lt;P&gt;Thanks for your help but I am having problem with my code. I want to do like matrix but I don't know how to calculate it to get the data like my post&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 14:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4786865#M62511</guid>
      <dc:creator>DavidAnthony</dc:creator>
      <dc:date>2025-08-04T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4792331#M62612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for confirming, and as &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/780072"&gt;@SamWiseOwl&lt;/a&gt;&amp;nbsp;showed, ISINSCOPE is a good approach for detecting the hierarchy level. If your current measure isn’t giving the expected result, it may be due to how the filter context is being applied when drilling down in your custom visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the Color level, you’ll need to make sure the calculation ignores the Company filter so it matches the original average you posted. You can do this by adapting the SWITCH pattern to use REMOVEFILTERS or ALL for that level, for example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH(
    TRUE(),
    ISINSCOPE(Cars[make]),
        AVERAGE(Cars[value]),
    ISINSCOPE(Cars[color]),
        CALCULATE(AVERAGE(Cars[value]), REMOVEFILTERS(Cars[make])),
    BLANK()
)&lt;/LI-CODE&gt;
&lt;P&gt;If you can share the dataset or a sample version of your measure, it will be easier to pinpoint why your current code is not aligning with the Matrix visual output.&lt;/P&gt;
&lt;P&gt;You could also share .pbix file without any sensitive data. Please follow this guide on how to share .pbix.:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Please reach out for further assistance.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Aug 2025 14:14:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4792331#M62612</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-08-10T14:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4799385#M62722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Just wanted to check if the response provided was helpful. If further assistance is needed, please reach out.&amp;nbsp;&lt;SPAN&gt;You could also share .pbix file without any sensitive data.&lt;/SPAN&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 06:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4799385#M62722</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-08-18T06:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4804458#M62799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;We wanted to kindly follow up regarding your query. If you need any further assistance, please reach out.&amp;nbsp;&lt;SPAN&gt;You could also share .pbix file without any sensitive data.&lt;/SPAN&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 04:52:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4804458#M62799</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-08-22T04:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Measure value when Drilldown in Table Matrix (Do not accumulate subrows)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4807638#M62839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Following up to see if your query is resolved.&lt;BR /&gt;If you need further assistance, please reach out with sample .pbix to assist better.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 06:02:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Keep-Measure-value-when-Drilldown-in-Table-Matrix-Do-not/m-p/4807638#M62839</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-08-26T06:02:50Z</dc:date>
    </item>
  </channel>
</rss>

