<?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: find the True or False compare two table using  common column in both table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992453#M100727</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your sample data and detailed description for yoor need.&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;BR /&gt;(1)My test data is the same as yours.&lt;/P&gt;
&lt;P&gt;(2)We can click "New Column" and enter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;True/False = var _cur_code = [Itemcode]
var _second_code =COUNTROWS(FILTER('Second Table','Second Table'[Itemcode]=_cur_code))
var _pack = [Pack outer]
var _bomtext = MAXX( FILTER('Second Table','Second Table'[Itemcode]=_cur_code ) ,[BOMTEXT])
return
IF(_second_code&amp;lt;=0 , "True" , IF(_pack&amp;lt;&amp;gt; BLANK() ,"True" , IF(_bomtext&amp;lt;&amp;gt; BLANK() ,"False" ,"True")))&lt;/LI-CODE&gt;
&lt;P&gt;(3)Then we can meet your need , the result is as follows:&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 time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 01:54:34 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2022-12-29T01:54:34Z</dc:date>
    <item>
      <title>find the True or False compare two table using  common column in both table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992073#M100698</link>
      <description>&lt;P&gt;I have two table First table and second table. I am trying to compare two table based on the common column&amp;nbsp; &lt;STRONG&gt;Itemcode&amp;nbsp;&lt;/STRONG&gt;in two table.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If First table&amp;nbsp; Item code have pack outer value and same time second table Same Item code&amp;nbsp; have BOM text value its return&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;TRUE.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If First table&amp;nbsp; Item code have pack outer value its &lt;STRONG&gt;blank&lt;/STRONG&gt; and same time second table Same Item code&amp;nbsp; have BOM text value&amp;nbsp; its return&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;FALSE&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If First table&amp;nbsp; Item code have pack outer value its &lt;STRONG&gt;blank&lt;/STRONG&gt; and same time second table Same Item code&amp;nbsp; have BOM text&amp;nbsp; &amp;nbsp;value blank its return&amp;nbsp; &lt;STRONG&gt;TRUE&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If First table&amp;nbsp; Item code have pack outer value or&amp;nbsp;&amp;nbsp;blank and same time second table doesn't contain same Item code its return &lt;STRONG&gt;TRUE&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First Table :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Itemcode&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pack outer&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;FA411211&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; 56&lt;/P&gt;&lt;P&gt;FA411212&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; 46&lt;/P&gt;&lt;P&gt;FA411213&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; 44&lt;/P&gt;&lt;P&gt;FA411214&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;P&gt;FA411215&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; 46&lt;/P&gt;&lt;P&gt;FA411216&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second Table :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Itemcode&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOMTEXT&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FA411211&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PL&lt;/P&gt;&lt;P&gt;FA411212&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PW&lt;/P&gt;&lt;P&gt;FA411213&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;P&gt;FA411214&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;P&gt;FA411216&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expect Output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Itemcode&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pack outer&amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE/FALSE&amp;nbsp;&lt;/P&gt;&lt;P&gt;FA411211&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; 56&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE&lt;/P&gt;&lt;P&gt;FA411212&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; 46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE&amp;nbsp;&lt;/P&gt;&lt;P&gt;FA411213&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; 44&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE&amp;nbsp;&lt;/P&gt;&lt;P&gt;FA411214&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; TRUE&lt;/P&gt;&lt;P&gt;FA411215&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; 46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE&lt;/P&gt;&lt;P&gt;FA411216&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; FALSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;looking for support . thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 17:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992073#M100698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-28T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: find the True or False compare two table using  common column in both table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992187#M100705</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try this formula in calculated column,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TRUE/FALSE = 
VAR _lookup =
    LOOKUPVALUE (
        'Second Table'[BOMTEXT],
        'Second Table'[Itemcode], 'First Table'[Itemcode]
    )
VAR _result =
    SWITCH (
        TRUE (),
        'First Table'[Pack outer] &amp;lt;&amp;gt; BLANK ()
            &amp;amp;&amp;amp; _lookup &amp;lt;&amp;gt; BLANK (), TRUE (),
        'First Table'[Pack outer]
            == BLANK ()
                &amp;amp;&amp;amp; _lookup &amp;lt;&amp;gt; BLANK (), FALSE (),
        'First Table'[Pack outer] = BLANK ()
            &amp;amp;&amp;amp; _lookup = BLANK (), TRUE (),
        TRUE ()
    )
RETURN
    _result&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Arul&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 19:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992187#M100705</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2022-12-28T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: find the True or False compare two table using  common column in both table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992453#M100727</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your sample data and detailed description for yoor need.&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;BR /&gt;(1)My test data is the same as yours.&lt;/P&gt;
&lt;P&gt;(2)We can click "New Column" and enter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;True/False = var _cur_code = [Itemcode]
var _second_code =COUNTROWS(FILTER('Second Table','Second Table'[Itemcode]=_cur_code))
var _pack = [Pack outer]
var _bomtext = MAXX( FILTER('Second Table','Second Table'[Itemcode]=_cur_code ) ,[BOMTEXT])
return
IF(_second_code&amp;lt;=0 , "True" , IF(_pack&amp;lt;&amp;gt; BLANK() ,"True" , IF(_bomtext&amp;lt;&amp;gt; BLANK() ,"False" ,"True")))&lt;/LI-CODE&gt;
&lt;P&gt;(3)Then we can meet your need , the result is as follows:&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 time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 01:54:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2992453#M100727</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-12-29T01:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: find the True or False compare two table using  common column in both table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2996446#M100991</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp; its working .. thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 08:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2996446#M100991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-02T08:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: find the True or False compare two table using  common column in both table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2996802#M101018</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;one modificatiosn one measure . if First table item code&amp;nbsp; if not available in Second table its should be False ..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 13:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2996802#M101018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-02T13:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: find the True or False compare two table using  common column in both table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2997507#M101065</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp; i am trying&amp;nbsp; to modify the above result for Itemcode conditions&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FA411213 and&amp;nbsp;FA411215&amp;nbsp; . if Value&amp;nbsp; available in&amp;nbsp; First table and same time second table is blank or item code missing its a False .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 02:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/find-the-True-or-False-compare-two-table-using-common-column-in/m-p/2997507#M101065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-03T02:58:57Z</dc:date>
    </item>
  </channel>
</rss>

