<?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: Measure to check if two fields of different tables are equal in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-check-if-two-fields-of-different-tables-are-equal/m-p/3185628#M115312</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _table1=
SUMMARIZE(
    'Export', 'Export'[Workorder],'Export'[Prioriteit],"Prio",MAXX(FILTER(ALL(Table2),'Table2'[Workorder]=EARLIER('Export'[Workorder])),[Prio]))
var _tabel2=
ADDCOLUMNS(
    _table1,"Flag",IF([Prioriteit]=[Prio],1,0))
return
MAXX(
    FILTER(_tabel2,
    [Workorder] in SELECTCOLUMNS('Export',"1",[Workorder])),[Flag])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 07:30:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-13T07:30:50Z</dc:date>
    <item>
      <title>Measure to check if two fields of different tables are equal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-check-if-two-fields-of-different-tables-are-equal/m-p/3181705#M115045</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a SharePoint List connected to my Power BI to add changes to the original Excel file.&lt;/P&gt;&lt;P&gt;The field Workorders are related to eachother.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know if 'Export'&lt;SPAN&gt;[Prioriteit] and Terugmelden&lt;SPAN class=""&gt;[_Prio] are equal and show it in a table like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with a good measure code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 11:45:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-check-if-two-fields-of-different-tables-are-equal/m-p/3181705#M115045</guid>
      <dc:creator>IAM</dc:creator>
      <dc:date>2023-04-11T11:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to check if two fields of different tables are equal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-check-if-two-fields-of-different-tables-are-equal/m-p/3185628#M115312</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _table1=
SUMMARIZE(
    'Export', 'Export'[Workorder],'Export'[Prioriteit],"Prio",MAXX(FILTER(ALL(Table2),'Table2'[Workorder]=EARLIER('Export'[Workorder])),[Prio]))
var _tabel2=
ADDCOLUMNS(
    _table1,"Flag",IF([Prioriteit]=[Prio],1,0))
return
MAXX(
    FILTER(_tabel2,
    [Workorder] in SELECTCOLUMNS('Export',"1",[Workorder])),[Flag])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 07:30:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-check-if-two-fields-of-different-tables-are-equal/m-p/3185628#M115312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T07:30:50Z</dc:date>
    </item>
  </channel>
</rss>

