<?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: If statement with two tables that are related in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1890558#M40721</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, all sorted now.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 10:32:17 GMT</pubDate>
    <dc:creator>Henry44</dc:creator>
    <dc:date>2021-06-09T10:32:17Z</dc:date>
    <item>
      <title>If statement with two tables that are related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1887505#M40646</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables that are related (they are related by a Job number)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Authority GIS (with a field called authority)&amp;nbsp; and SAW (with a field called Location_of_job)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to do the following IF statement to create a new column with a job location.&amp;nbsp; I want a new column in the Authority table which contains the authority field value from Authority GIS if is not 'Not-recorded' but contains the Location_of_job value from the SAW table if it is 'Not-recorded'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job_Location = IF(AUTHORITY &amp;lt;&amp;gt; "Not_recorded", AUTHORITY, Location_of_job) this isn't working and the error message is Cannot find name 'Location_of_job'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong?&amp;nbsp; Does this not work with two tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1887505#M40646</guid>
      <dc:creator>Henry44</dc:creator>
      <dc:date>2021-06-08T09:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with two tables that are related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1887963#M40660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295315" data-lia-user-login="Henry44" class="lia-mention lia-mention-user"&gt;Henry44&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You must have the Job_location column in the Authority table. For this you can bring in this column from the SAW table using LOOKUPVALUE Function, and then try using the DAX (Job Location field must be from Authority table).&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create column in AUTHORITY:&lt;BR /&gt;Job_Location= LOOKUPVALUE(Location_of_Job, Authority(Job number), SAW(Job number))&lt;BR /&gt;Once this column is created, you can use your DAX:&lt;BR /&gt;&lt;SPAN&gt;Job_Location2 = IF(AUTHORITY &amp;lt;&amp;gt; "Not_recorded", AUTHORITY, Job_Location)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 12:22:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1887963#M40660</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-06-08T12:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with two tables that are related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1890558#M40721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, all sorted now.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 10:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-two-tables-that-are-related/m-p/1890558#M40721</guid>
      <dc:creator>Henry44</dc:creator>
      <dc:date>2021-06-09T10:32:17Z</dc:date>
    </item>
  </channel>
</rss>

