<?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 two columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2534446#M71185</link>
    <description />
    <pubDate>Mon, 23 May 2022 22:21:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-23T22:21:12Z</dc:date>
    <item>
      <title>Subtract two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2534446#M71185</link>
      <description />
      <pubDate>Mon, 23 May 2022 22:21:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2534446#M71185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-23T22:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2534724#M71204</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , In DAx&lt;/P&gt;
&lt;P&gt;new column = [Column 2] - [Column 1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The information you have provided is not making the problem clear to me. Can you please explain with an example. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate your Kudos.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 02:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2534724#M71204</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-24T02:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2536808#M71326</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; Thank you for your response.&lt;/P&gt;&lt;P&gt;The results of my latest attempt ar shown here.&amp;nbsp; This is wrong, of course.&amp;nbsp; It should show the net amount for each line.&amp;nbsp; The first line should have 1869.95.&amp;nbsp; The second should be 1978.06, etc.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the two tables, _GroupEarnings and _GroupDeductions, linked by the fields _EmplAndPeriod (ie:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing that bothers me is that the field, _DedAmount, has the 'sum' symbol in front of it, while the field _EarnAmount does not.&amp;nbsp; I'm not sure where that came from when I created the field, _DedAmount, or why it's there:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:39:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2536808#M71326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-24T15:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2540533#M71546</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;Is [Earnings] a measure? If so, please try this measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Total = 
SUMX (
    SUMMARIZE (
        '_GroupEarnings',
        '_GroupEarnings'[Year],
        '_GroupEarnings'[Payperiod],
        "Earings", [Earnings],
        "dedamount", SUM ( _GroupDeductions[_DedAmount] )
    ),
    [Earnings] - [dedamount]
)&lt;/LI-CODE&gt;
&lt;P&gt;If this doesn't work for you, would you mind sharing a sample file with no privacy? Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=04%7C01%7Cv-angzheng%40microsoft.com%7Cc2836cb0f62c42737df908da00b2514f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637823063108785591%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=l2n9IWjDvRUpfyJ8FUxudT62uUUFdhTT4x0ONcGKLpQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=04%7C01%7Cv-angzheng%40microsoft.com%7Cc2836cb0f62c42737df908da00b2514f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637823063108785591%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=PhMztQoPfT%2FarZYCKWuZr3f%2FmE1rtAKge%2F5vksz5RGo%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 05:47:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns/m-p/2540533#M71546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-26T05:47:42Z</dc:date>
    </item>
  </channel>
</rss>

