<?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: Subtracting Grouped Rows in Different Tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315358#M23081</link>
    <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies. I am looking for a number value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if I have a WO with 21 Total Construction Locations from Table 2 and I have 5 Locations listed in Table 1 under that WO, I would like a column in Table 2 to say 16 Locations Not Started for that WO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 16:32:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-21T16:32:37Z</dc:date>
    <item>
      <title>Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315183#M23073</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm managing construction locations and I have 2 tables. Here are a few sample columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 (Locations)&lt;/P&gt;&lt;TABLE border="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Work Order #&lt;/TD&gt;&lt;TD&gt;Work Location Tag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970386&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970386&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970386&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970387&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970387&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 (Summary)&lt;/P&gt;&lt;TABLE border="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Work Order #&lt;/TD&gt;&lt;TD&gt;Total Construction Locations&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970386&lt;/TD&gt;&lt;TD&gt;372&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970387&lt;/TD&gt;&lt;TD&gt;106&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7970388&lt;/TD&gt;&lt;TD&gt;271&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to find out how many locations haven't started yet, which would follow the logic "Total Construction Locations - # of Work Locations per WO #". So basically if a location has a Work Location Tag, I assume assume it has started.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add this column next to the Total Construction Locations so I can eventually compare Total vs Not Started vs In Progress.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:36:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315183#M23073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T16:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315321#M23078</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Not very clear &lt;/P&gt;
&lt;P&gt;New column in Table 2&lt;/P&gt;
&lt;P&gt;if(isblank(Countx(filter(Table1,table1[Work Order #] =table2[Work Order #]),[Work Location Tag])),"Not Started","In Progress")&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315321#M23078</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-21T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315358#M23081</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies. I am looking for a number value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if I have a WO with 21 Total Construction Locations from Table 2 and I have 5 Locations listed in Table 1 under that WO, I would like a column in Table 2 to say 16 Locations Not Started for that WO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315358#M23081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T16:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315383#M23082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find &lt;A href="https://alakhawayn365-my.sharepoint.com/:u:/g/personal/s_ouchtal_alumni_aui_ma/Ebi25CVvuehPi8y0aWh2oA8B_uVTwcBDWF4ljlnmutFyAg?e=qBCVBa" target="_blank" rel="noopener"&gt;here&lt;/A&gt; a pbix file with the solution to your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it solves the issue, please give Kudos and mark as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:47:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315383#M23082</guid>
      <dc:creator>saraMissBI</dc:creator>
      <dc:date>2020-08-21T16:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315450#M23086</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179989" data-lia-user-login="saraMissBI" class="lia-mention lia-mention-user"&gt;saraMissBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the file is stored at&amp;nbsp;&lt;SPAN&gt;alakhawayn365-my.sharepoint.com and I can't access it. Can you post it differently or I can PM you my email address.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robyn&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 17:20:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315450#M23086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T17:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315602#M23093</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help. I ended up figuring out the solution. Here's the equation below...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;In Progress/Complete Locations = countx(filter('Table1', 'Table1'[Work Order #] = 'Table 2'[Work Order #]), 'Table1'[# of Locations Complete/In Progress])

Not Started Locations = Total Construction Locations - In Progress/Complete Locations&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Aug 2020 18:37:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315602#M23093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T18:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Grouped Rows in Different Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315753#M23102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry here is the &lt;A href="https://alakhawayn365-my.sharepoint.com/:u:/g/personal/s_ouchtal_alumni_aui_ma/Ebi25CVvuehPi8y0aWh2oA8B4e7ZtzvVQ7DeVYvsgAmi1w?e=xOUNiX" target="_blank" rel="noopener"&gt;link&lt;/A&gt; it should work for you now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:36:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Grouped-Rows-in-Different-Tables/m-p/1315753#M23102</guid>
      <dc:creator>saraMissBI</dc:creator>
      <dc:date>2020-08-21T20:36:47Z</dc:date>
    </item>
  </channel>
</rss>

