<?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: Subtract two columns from different table using DAX in power bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/830180#M5972</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="180203" data-lia-user-login="PreetiSahu321" class="lia-mention lia-mention-user"&gt;PreetiSahu321&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If I understand your issue, try this.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Subtract measure = SUM(Orders[Sales Doc])-Sum(Sales[Order])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 15:39:30 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2019-10-28T15:39:30Z</dc:date>
    <item>
      <title>Subtract two columns from different table using DAX in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/830048#M5968</link>
      <description>&lt;P&gt;Hello Power BI Community Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently, I was working with Power BI DAX. As per my requirement, I have to subtract two different columns of values from two different tables. Let me explain to you properly so that you can understand easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one table named: "&lt;STRONG&gt;Orders&lt;/STRONG&gt;". This Orders table has one column as "&lt;STRONG&gt;Sales doc.&lt;/STRONG&gt;" whose data type is the &lt;STRONG&gt;Whole number. &lt;/STRONG&gt;Similarly, I have another table named: "&lt;STRONG&gt;Sales&lt;/STRONG&gt;" and this has another column as "&lt;STRONG&gt;Order&lt;/STRONG&gt;"&amp;nbsp;whose data type is the &lt;STRONG&gt;Whole number.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per my requirement, I have to subtract the values from the &lt;STRONG&gt;Sales doc. (from Orders table)&lt;/STRONG&gt; to &lt;STRONG&gt;Order (from the Sales table). &lt;/STRONG&gt;As I am new to Power BI, I don't have any idea to subtract from different tables using DAX. Please, can anyone suggest to me what I have to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 14:13:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/830048#M5968</guid>
      <dc:creator>PreetiSahu321</dc:creator>
      <dc:date>2019-10-28T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two columns from different table using DAX in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/830180#M5972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="180203" data-lia-user-login="PreetiSahu321" class="lia-mention lia-mention-user"&gt;PreetiSahu321&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If I understand your issue, try this.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Subtract measure = SUM(Orders[Sales Doc])-Sum(Sales[Order])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/830180#M5972</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-28T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two columns from different table using DAX in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/835948#M6191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have applied the formula and it is giving me the exact value. But one more thing I want to know is, there is one common column in both &lt;STRONG&gt;Orders&lt;/STRONG&gt; and &lt;STRONG&gt;Sales&lt;/STRONG&gt;&amp;nbsp;tables i.e. &lt;STRONG&gt;BillDate&lt;/STRONG&gt; (Date and Time Datatype). As per my requirement, I want to subtract the measure per monthly basis. Let me explain to you properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see below are two tables as Orders and Sales. I want to subtract the values from &lt;STRONG&gt;Net value&amp;nbsp;&lt;/STRONG&gt;to&amp;nbsp;&lt;STRONG&gt;Sales US$&lt;/STRONG&gt; of the current month. As this is November month is going on, So it will subtract the values for the current month only. i.e. (132454-370.80=132,083.2)&lt;/P&gt;&lt;P&gt;&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;Can you suggest me if anything I have to do else?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 07:37:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-two-columns-from-different-table-using-DAX-in-power-bi/m-p/835948#M6191</guid>
      <dc:creator>PreetiSahu321</dc:creator>
      <dc:date>2019-11-04T07:37:21Z</dc:date>
    </item>
  </channel>
</rss>

