<?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: Power Query Lookup to another table in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525091#M115288</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456968" data-lia-user-login="SP3007" class="lia-mention lia-mention-user"&gt;SP3007&lt;/a&gt;&amp;nbsp;I removed brackets after &lt;STRONG&gt;each&lt;/STRONG&gt; and before &lt;STRONG&gt;{0}&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 12:32:30 GMT</pubDate>
    <dc:creator>AlienSx</dc:creator>
    <dc:date>2023-11-09T12:32:30Z</dc:date>
    <item>
      <title>Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3524849#M115279</link>
      <description>&lt;P&gt;Hello, I need some help please!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a new column to my table. It needs to bring back a value by looking up a column against another table.&lt;/P&gt;&lt;P&gt;ie - column it needs to look upto is: CCA1&lt;/P&gt;&lt;P&gt;The other table with CCA1 is called - Helper_CCA1_Service and the column it needs to bring back is OrgStructServiceID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not very technical at all - and was given this code to use - but it just keeps bringing back an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Table.AddColumn(#"5 - Added CCA1 Column", "OrgStructServiceID", each (let CCA1 = [CCA1] in Table.SelectRows(Helper_CCA1_Service, each [CCA1] = CCA1)){0}[OrgStructServID], type number)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help why it keeps coming back with error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&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;</description>
      <pubDate>Thu, 09 Nov 2023 10:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3524849#M115279</guid>
      <dc:creator>SP3007</dc:creator>
      <dc:date>2023-11-09T10:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3524983#M115282</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456968" data-lia-user-login="SP3007" class="lia-mention lia-mention-user"&gt;SP3007&lt;/a&gt;&amp;nbsp;those brackets... Why don't you Table.NestedJoin your table with helper?&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;step
  = Table.AddColumn(
    #"5 - Added CCA1 Column",
    "OrgStructServiceID",
    each
      let
        CCA1 = [CCA1]
      in
        Table.SelectRows(
          Helper_CCA1_Service,
          each [CCA1] = CCA1
        ){0}[OrgStructServID],
    type number
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 11:44:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3524983#M115282</guid>
      <dc:creator>AlienSx</dc:creator>
      <dc:date>2023-11-09T11:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525080#M115286</link>
      <description>&lt;P&gt;Thanks for your response - as mentioned im not techy at all so can't see the difference with what you've suggested compared to what I originally pasted?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 12:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525080#M115286</guid>
      <dc:creator>SP3007</dc:creator>
      <dc:date>2023-11-09T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525091#M115288</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456968" data-lia-user-login="SP3007" class="lia-mention lia-mention-user"&gt;SP3007&lt;/a&gt;&amp;nbsp;I removed brackets after &lt;STRONG&gt;each&lt;/STRONG&gt; and before &lt;STRONG&gt;{0}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 12:32:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525091#M115288</guid>
      <dc:creator>AlienSx</dc:creator>
      <dc:date>2023-11-09T12:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525210#M115292</link>
      <description>&lt;P&gt;Use the GUI to do a merge. It walks you through it pretty well. Code by hand as a last resort unless you're comfortable self-describing as "a coder."&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 13:22:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3525210#M115292</guid>
      <dc:creator>j_ocean</dc:creator>
      <dc:date>2023-11-09T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3531937#M115516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456968" data-lia-user-login="SP3007" class="lia-mention lia-mention-user"&gt;SP3007&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can change the code to the following.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(#"5 - Added CCA1 Column", "OrgStructServiceID", each List.Min(Table.SelectRows(Helper_CCA1_Service,(x)=&amp;gt;x[CCA1]=[CCA1])[OrgStructServID]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;, then please consider&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 01:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3531937#M115516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-14T01:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3532591#M115530</link>
      <description>&lt;P&gt;Thanks for this...its now coming back as null rather than error so one step closer!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 08:57:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3532591#M115530</guid>
      <dc:creator>SP3007</dc:creator>
      <dc:date>2023-11-14T08:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3532621#M115531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="456968" data-lia-user-login="SP3007" class="lia-mention lia-mention-user"&gt;SP3007&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you send a little bit of the sample data in the two tables, because if the data IDs in the two tables are the same, it should not return a null value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;, then please consider&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 09:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3532621#M115531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-14T09:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power Query Lookup to another table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3532826#M115545</link>
      <description>&lt;P&gt;Your solution worked! Thank you. My data was wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 11:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Query-Lookup-to-another-table/m-p/3532826#M115545</guid>
      <dc:creator>SP3007</dc:creator>
      <dc:date>2023-11-14T11:31:27Z</dc:date>
    </item>
  </channel>
</rss>

