<?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: Filter matched unique values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310590#M123752</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies for the insufficent information.&amp;nbsp; It speaks to my inexperience.&lt;/P&gt;&lt;P&gt;It took time, but I learned to use a 'LOOKUP' with the help of resources found at&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/" target="_blank"&gt;Power BI documentation - Power BI | Microsoft Learn&lt;/A&gt;&amp;nbsp; &lt;SPAN&gt;I then filtered on only the 'blank' matches resulting in a solution.&amp;nbsp; I really appreciate your time and, thank you again.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rescheduled Shipments =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LOOKUPVALUE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Table1'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Truck ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Table1 '&lt;/SPAN&gt;&lt;SPAN&gt;[Truck ID]&lt;/SPAN&gt;&lt;SPAN&gt;, 'Table2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Truck ID]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 30 Jun 2023 16:40:24 GMT</pubDate>
    <dc:creator>rdstone230</dc:creator>
    <dc:date>2023-06-30T16:40:24Z</dc:date>
    <item>
      <title>Filter matched unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310131#M123702</link>
      <description>&lt;P&gt;Hi - I have two tables where both tables contain a column with a unique ID number.&amp;nbsp; Table 1 will contain a single or mutiple value of a unique ID number while table 2 will contain multiple values of the unique ID number.&amp;nbsp; I would like to filter out all the unique ID numbers found in table 1 from table 2.&amp;nbsp; How would I perform this step using a DAX command?&amp;nbsp; Thank you.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 12:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310131#M123702</guid>
      <dc:creator>rdstone230</dc:creator>
      <dc:date>2023-06-30T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter matched unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310228#M123710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="513184" data-lia-user-login="rdstone230" class="lia-mention lia-mention-user"&gt;rdstone230&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Not sure what you are up to but you can try this filter&lt;/P&gt;
&lt;P&gt;FILTER ( Table2, Table2[Truck ID] IN VALUES ( Table1[Truck ID] ) )&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 12:58:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310228#M123710</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-30T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter matched unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310314#M123722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I am a novice analyst for a logistics company and I want to know how many of our trucks have delivered on time and to do so, I need to subrtact out trucks that have been rescheduled from trucks that have not.&amp;nbsp; So my data is represented like this:&lt;/P&gt;&lt;P&gt;-Table 1 represents trucks that have been rescheduled for a variety of reasons.&amp;nbsp; Each row of data represents a single truck that has been rescheduled.&amp;nbsp; If two rows of the same Truck ID appears, then that truck has been rescheduled two times.&lt;/P&gt;&lt;P&gt;-Table 2 lists ALL and every truck and each row of the same Truck ID represents a single delivery point.&amp;nbsp; If there are five rows of the same Truck ID then the truck has five different delivery points.&lt;/P&gt;&lt;P&gt;I want to subtract the Truck ID's in table 1 from those in table 2 so that I'm left with only the columns that represent Trucks minus Rescheduled Trucks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I ran your solution and received the following error.&amp;nbsp; I do have two columns in table 2 with the truck ID, but they aren't identical:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help with this!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310314#M123722</guid>
      <dc:creator>rdstone230</dc:creator>
      <dc:date>2023-06-30T13:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter matched unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310388#M123734</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="513184" data-lia-user-login="rdstone230" class="lia-mention lia-mention-user"&gt;rdstone230&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The information that you have provided is not sufficient to produce a concrete solution. I can understand the subtraction shall be curried out for each stop dependently. The data model/relationships must be clear, the data structure of each table must be clear and the nature of the report that clarifies the context of evaluation must&amp;nbsp;be clear. I can suggest the following but I can also guess that probably&amp;nbsp;it won't provide&amp;nbsp;correct results within the evaluation context of your report.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;CountMeasure =
COUNTROWS (
    EXCEPT ( VALUES ( Table2[Truck ID] ), VALUES ( Table1[Truck ID] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310388#M123734</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-30T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter matched unique values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310590#M123752</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies for the insufficent information.&amp;nbsp; It speaks to my inexperience.&lt;/P&gt;&lt;P&gt;It took time, but I learned to use a 'LOOKUP' with the help of resources found at&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/" target="_blank"&gt;Power BI documentation - Power BI | Microsoft Learn&lt;/A&gt;&amp;nbsp; &lt;SPAN&gt;I then filtered on only the 'blank' matches resulting in a solution.&amp;nbsp; I really appreciate your time and, thank you again.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rescheduled Shipments =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LOOKUPVALUE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Table1'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Truck ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Table1 '&lt;/SPAN&gt;&lt;SPAN&gt;[Truck ID]&lt;/SPAN&gt;&lt;SPAN&gt;, 'Table2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Truck ID]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jun 2023 16:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-matched-unique-values/m-p/3310590#M123752</guid>
      <dc:creator>rdstone230</dc:creator>
      <dc:date>2023-06-30T16:40:24Z</dc:date>
    </item>
  </channel>
</rss>

