<?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: comparing multiple values in two columns and displaying unique and matching values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821053#M5616</link>
    <description>&lt;P&gt;The above post column 1 &amp;amp; column 2 were just sample data, I have column values mathcing other column values. I tried changing the names to same names but it did not work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can one of the reason be that because lets say a value is in row 1 in column 1 and the value matching that value in column 2 is in row 223, could that be the reason? or does the formula check iteratively for all the values if they are matching or not?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 16:10:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-17T16:10:26Z</dc:date>
    <item>
      <title>comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/820996#M5610</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two columns of ids that are from two different reports, I know for sure that there are more values in one column than the other but I want to know which are the Ids that aren't present in the other column and which ones are present.(I&amp;nbsp; have thousands of these ids I want to compare, is there a query that can compare all the values one by one from both columns and match and provide an output)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data example:&lt;/P&gt;&lt;P&gt;Column1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;905443&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;962910&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;963037&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;964534&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;964591&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;905463&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;964586&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;991158&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;964528&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;961843&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;961877&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;961869&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; Column2&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;994177&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908419&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908615&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908395&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908396&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;908402&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/820996#M5610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-17T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821013#M5612</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the ones present in the first but not on the second column, create a new, one-column&amp;nbsp; calculated table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NewTable =
EXCEPT ( DISTINCT ( Table1[Coulmn1] ), DISTINCT ( Table2[Coulmn2] ) )&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider giving kudos if posts are helpful.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&amp;nbsp;&lt;IMG src="https://community.fabric.microsoft.com/html/badge_icons/SU18_powerbi_badge.png" alt="Datanaut" width="64" height="64" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:25:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821013#M5612</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-10-17T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821033#M5614</link>
      <description>&lt;P&gt;Hey thank you for your prompt response, I have already tried that but it shows "A table of multiple values was supplied where a single value was expected". Thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821033#M5614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-17T15:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821040#M5615</link>
      <description>&lt;P&gt;You've probably done something differently. Change the name of Column2 in table 2 to Column 1. Both columns in the expect should have the same name. From what I see there are no numbers in Table 2 present in Table1 in your example&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;See it all at work in the attached file&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider giving kudos if posts are helpful.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&amp;nbsp;&lt;IMG src="https://community.fabric.microsoft.com/html/badge_icons/SU18_powerbi_badge.png" alt="Datanaut" width="64" height="64" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:52:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821040#M5615</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-10-17T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821053#M5616</link>
      <description>&lt;P&gt;The above post column 1 &amp;amp; column 2 were just sample data, I have column values mathcing other column values. I tried changing the names to same names but it did not work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can one of the reason be that because lets say a value is in row 1 in column 1 and the value matching that value in column 2 is in row 223, could that be the reason? or does the formula check iteratively for all the values if they are matching or not?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:10:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821053#M5616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-17T16:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821073#M5617</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;Thank you for the attached file, It worked, the only issue now is that I do not know if the unique values are from table 1 or table 2, hopefully that works when I sync the slicers from those tables.Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Shlok Shah&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:27:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821073#M5617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-17T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: comparing multiple values in two columns and displaying unique and matching values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821079#M5618</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The unique values are from the first table in the &lt;A href="https://dax.guide/except/" target="_self"&gt;EXCEPT( )&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;EXCEPT(Table1, Table2 ) gives you the values that are present in Table1 but not present in Table2. You can simply do&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EXCEPT(Table2, Table1 ) if you want the values present in Table2 but not present in Table1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider giving kudos if posts are helpful.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&amp;nbsp;&lt;IMG src="https://community.fabric.microsoft.com/html/badge_icons/SU18_powerbi_badge.png" alt="Datanaut" width="64" height="64" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:32:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/comparing-multiple-values-in-two-columns-and-displaying-unique/m-p/821079#M5618</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-10-17T16:32:25Z</dc:date>
    </item>
  </channel>
</rss>

