<?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: Lookup value - error multiple values was supplied in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/3169475#M1069686</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="58173" data-lia-user-login="v-juanli-msft" class="lia-mention lia-mention-user"&gt;v-juanli-msft&lt;/a&gt;&amp;nbsp;- I have a similar requirement where I have to just bring multiple values from other table using Lookup value function.&lt;/P&gt;&lt;P&gt;When I use LOOKUPVALUE, I'm getting this error: "A table of multiple values was supplied where a single value was expected"&lt;BR /&gt;When I use FIRSTNONBLANK, I getting only one value from the other table. However I need all the matched values (few cases only 1 value, few cases more than 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me with the same? Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 13:28:49 GMT</pubDate>
    <dc:creator>akhilduvvuru</dc:creator>
    <dc:date>2023-04-03T13:28:49Z</dc:date>
    <item>
      <title>Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768049#M370100</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a calculated column from the left table to lookup value from the right table but it shows this error "A table of multiple values was supplied where a single value was expected.".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is calculated column:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lookup = LOOKUPVALUE('USA recurring'[USD revenue],'USA recurring'[Customer ID],'monthly groupby'[customer_id],'USA recurring'[Year billed],'monthly groupby'[year],'USA recurring'[month billed converted],'monthly groupby'[month])&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Is there a way to bypass it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my tables:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Much appreciate for any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 22:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768049#M370100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-15T22:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768144#M370147</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to use merge query instead. Go to edit queries, select your table, click merge queries (home tab) and left join with other table. Select columns that you need to match. Make sure your join kind is left outer. See attached photo. Then expand and select the column you need to join (lookup).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 02:53:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768144#M370147</guid>
      <dc:creator>georgy</dc:creator>
      <dc:date>2019-08-16T02:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768172#M370164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Does this work?&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: 'SegoeUI','Lato','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;CALCULATE(SUM('USA recurring'[USD revenue]),FILTER('&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #000000; display: inline; float: none; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;USA recurring&lt;/SPAN&gt;','USA recurring'[Customer ID]=EARLIER('monthly groupby'[customer_id])&amp;amp;&amp;amp;'USA recurring'[Year billed]=EARLIER('monthly groupby'[year])&amp;amp;&amp;amp;'USA recurring'[month billed converted]=EARLIER('monthly groupby'[month])))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 03:25:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768172#M370164</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2019-08-16T03:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768365#M370268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried your Expression, and it works well on my side.&lt;/P&gt;
&lt;P&gt;The column is calculated in Table ‘monthly groupby’. You could try it again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your error, it is often caused by duplicate values.&lt;/P&gt;
&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table b&lt;/P&gt;
&lt;P&gt;col1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; col2&amp;nbsp; &amp;nbsp; col3&lt;/P&gt;
&lt;P&gt;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;
&lt;P&gt;&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; b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;&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; b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;
&lt;P&gt;It may throw an error when we use "lookupvalue" to get value from table b into table a.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, please consider any other methods.&lt;/P&gt;
&lt;P&gt;both solutions of georgy&amp;nbsp; and&amp;nbsp;Ashish_Mathur may work, it depends what final output you need.&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;BR /&gt;Maggie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Community Support Team _ Maggie Li&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 08:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768365#M370268</guid>
      <dc:creator>v-juanli-msft</dc:creator>
      <dc:date>2019-08-16T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768876#M370518</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;, it works!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 18:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/768876#M370518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-16T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/769014#M370577</link>
      <description>&lt;P&gt;You are welcome.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 02:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/769014#M370577</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2019-08-17T02:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/3169475#M1069686</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="58173" data-lia-user-login="v-juanli-msft" class="lia-mention lia-mention-user"&gt;v-juanli-msft&lt;/a&gt;&amp;nbsp;- I have a similar requirement where I have to just bring multiple values from other table using Lookup value function.&lt;/P&gt;&lt;P&gt;When I use LOOKUPVALUE, I'm getting this error: "A table of multiple values was supplied where a single value was expected"&lt;BR /&gt;When I use FIRSTNONBLANK, I getting only one value from the other table. However I need all the matched values (few cases only 1 value, few cases more than 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me with the same? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 13:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/3169475#M1069686</guid>
      <dc:creator>akhilduvvuru</dc:creator>
      <dc:date>2023-04-03T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value - error multiple values was supplied</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/3170537#M1069976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Both those functions will only bring over a single value.&amp;nbsp; To bring over multiple values (in multiple rows), use the Query Editor to merge the two tables.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 01:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Lookup-value-error-multiple-values-was-supplied/m-p/3170537#M1069976</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2023-04-04T01:27:52Z</dc:date>
    </item>
  </channel>
</rss>

