<?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 Subtract one column value to each column values in same row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3929717#M152888</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Hi All,&lt;/P&gt;&lt;P&gt;As per my business requirements I have to subtract current year (actual) column values to all the other column(MAR_FCST,PLAN, ACTUAL (2023)) values as shown in the matrix visuals. I am able to that for current year means current year actual column value I am able to subtract from current year mar_fcst, and plan and Actual. But not able to subtract current year actual column value to previous year actual column value.&lt;/P&gt;&lt;P&gt;I am getting correct results in the GTN% GS~&amp;nbsp;&lt;/P&gt;&lt;P&gt;For year 2024 columns.&lt;/P&gt;&lt;P&gt;Explanation is below:&lt;/P&gt;&lt;P&gt;I want to subtract 2024 ACTUAL column value which is 43.8% to other column that is&amp;nbsp;&lt;/P&gt;&lt;P&gt;(43.8-43.8) for plan and (42.8-43.8) for mar-fcst and (42.7-43.8) for plan and (40.9-43.8) for 2023 &lt;STRONG&gt;actual.&lt;/STRONG&gt; But I am not able to do that for&amp;nbsp;&lt;STRONG&gt;2023.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using below dax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; please help to guide me how to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the time and guidance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2024 16:49:13 GMT</pubDate>
    <dc:creator>ShyamS</dc:creator>
    <dc:date>2024-05-18T16:49:13Z</dc:date>
    <item>
      <title>Subtract one column value to each column values in same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3929717#M152888</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Hi All,&lt;/P&gt;&lt;P&gt;As per my business requirements I have to subtract current year (actual) column values to all the other column(MAR_FCST,PLAN, ACTUAL (2023)) values as shown in the matrix visuals. I am able to that for current year means current year actual column value I am able to subtract from current year mar_fcst, and plan and Actual. But not able to subtract current year actual column value to previous year actual column value.&lt;/P&gt;&lt;P&gt;I am getting correct results in the GTN% GS~&amp;nbsp;&lt;/P&gt;&lt;P&gt;For year 2024 columns.&lt;/P&gt;&lt;P&gt;Explanation is below:&lt;/P&gt;&lt;P&gt;I want to subtract 2024 ACTUAL column value which is 43.8% to other column that is&amp;nbsp;&lt;/P&gt;&lt;P&gt;(43.8-43.8) for plan and (42.8-43.8) for mar-fcst and (42.7-43.8) for plan and (40.9-43.8) for 2023 &lt;STRONG&gt;actual.&lt;/STRONG&gt; But I am not able to do that for&amp;nbsp;&lt;STRONG&gt;2023.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using below dax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; please help to guide me how to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the time and guidance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 16:49:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3929717#M152888</guid>
      <dc:creator>ShyamS</dc:creator>
      <dc:date>2024-05-18T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract one column value to each column values in same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3929745#M152892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your guidance on above query.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help and guidance.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 17:14:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3929745#M152892</guid>
      <dc:creator>ShyamS</dc:creator>
      <dc:date>2024-05-18T17:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract one column value to each column values in same row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3930883#M152929</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707964" data-lia-user-login="ShyamS" class="lia-mention lia-mention-user"&gt;ShyamS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given that I don't understand the structure of your specific data,&amp;nbsp;I can only give you some suggestions that might be useful:&lt;/P&gt;
&lt;P&gt;Maybe you can change your measure into this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GTN % GS ~ =
VAR A = [GTN % GS]
VAR CurrentDate =
    MAX ( CV_GMR_PL_APAC_REPORT[Year] )
VAR B =
    CALCULATE (
        [GTN % GS],
        CV_GMR_PL_APAC_REPORTING[Year] = YEAR ( CurrenDate ),
        CV_GMR_PL_APAC_REPORTING[Scenario] = "ACTUAL"
    )
VAR C = ( ( A - B ) * 10000 )
RETURN
    C&lt;/LI-CODE&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 01:39:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-one-column-value-to-each-column-values-in-same-row/m-p/3930883#M152929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-20T01:39:51Z</dc:date>
    </item>
  </channel>
</rss>

