<?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: Replacing Subtotal Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2628625#M76795</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use IF condition to check if the matrix is filtered by brand/make. If yes, you can fill it up with some other value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample DAX:&lt;/P&gt;&lt;P&gt;IF(ISINSCOPE([Brand/Make], (Add your new value here), [Price])&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jul 2022 03:32:35 GMT</pubDate>
    <dc:creator>Kishore_Kadhir</dc:creator>
    <dc:date>2022-07-09T03:32:35Z</dc:date>
    <item>
      <title>Replacing Subtotal Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2628162#M76768</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding subtotals of a Matrix. Below I have some example data that is similar to my specific case. I tried to find a suitable DAX function but could not find anything that matches.&lt;/P&gt;&lt;P&gt;Basically I want to know, if it is possible to replace the Subtotal values in the below Matrix either by a formula or by a specific value (which I get from a different column).&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: I do not want the Value for BMW 1 (51,000) to be summed up by the individual entries, but instead I want to either&lt;/P&gt;&lt;P&gt;1) plug in a value that I get from another column from the same Excel Sheet (for example 20,000)&lt;/P&gt;&lt;P&gt;2) or change the formula that calculates the subtotal (for example I want the square root of (22,000 + 29,000).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if that is possible with any DAX measure?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 16:04:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2628162#M76768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-08T16:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Subtotal Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2628625#M76795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use IF condition to check if the matrix is filtered by brand/make. If yes, you can fill it up with some other value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample DAX:&lt;/P&gt;&lt;P&gt;IF(ISINSCOPE([Brand/Make], (Add your new value here), [Price])&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 03:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2628625#M76795</guid>
      <dc:creator>Kishore_Kadhir</dc:creator>
      <dc:date>2022-07-09T03:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Subtotal Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2632773#M77066</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure_Result1 =
IF(
   HASONEVALUE('Table'[Group1])&amp;amp;&amp;amp;NOT(HASONEVALUE('Table'[Group2]))&amp;amp;&amp;amp;MAX('Table'[Group1])="1"
 ,
 CALCULATE(SUM('Table'[Column_Amount]),FILTER(ALL('Table'),
 'Table'[Brand]="BWM"&amp;amp;&amp;amp;'Table'[Group1]=MAX('Table'[Group1])&amp;amp;&amp;amp;'Table'[Group2]=MAX('Table'[Group2])))
 ,MAX('Table'[Price]))

&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure_Result2 =
IF(
   HASONEVALUE('Table'[Group1])&amp;amp;&amp;amp;NOT(HASONEVALUE('Table'[Group2])),
    SQRT( SUMX(
      FILTER(ALL('Table'),'Table'[Brand]=MAX('Table'[Brand])&amp;amp;&amp;amp;'Table'[Group1]=MAX('Table'[Group1])),[Price])),MAX('Table'[Price]))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you need pbix, please click &lt;A href="https://m365x668238-my.sharepoint.com/:u:/g/personal/yangliu_m365x668238_onmicrosoft_com/EQmHorjgTsJMkttl3J0Z-dEBdLjaCA797OSPUKxA6psXWQ?e=TC71XA" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 06:51:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2632773#M77066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-12T06:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Subtotal Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2640686#M77513</link>
      <description>&lt;P&gt;Thanks guys! That helped me a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 08:26:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/2640686#M77513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-15T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Subtotal Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/3528052#M135572</link>
      <description>&lt;P&gt;Hi Thankyou your solution worked&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 15:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Subtotal-Values/m-p/3528052#M135572</guid>
      <dc:creator>Ayush_tiwari08</dc:creator>
      <dc:date>2023-11-10T15:43:05Z</dc:date>
    </item>
  </channel>
</rss>

