Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
remi
Advocate II
Advocate II

Unable to return Lookup value due to error "A table of multiple values was supplied where a single "

Hello,

 

 

Want to match tabel1 with table2 but I'm struggling a bit with the formula:

 

Match=LOOKUPVALUE(table1[Priority], table1[Relates to INC], table2[INC])

 

and get the alarm: A table of multiple values was supplied where a single 

 

tabel1:

 

Ticket              Priority               Relates to INC

TT0001               1                          INC005

TT0003               3                          INC008

 

table2:

 

INC

INC005

INC006

 

Can you please help me with what I'm missing here? 

 

1 ACCEPTED SOLUTION

Hello both - @v-ljerr-msft and @Greg_Deckler,

 

Managed to solve it, thank you.

did the following dax with no relationship and it worked (in the past has the relationship active - that was the cause of not working)

 

Priority checkup = LOOKUPVALUE('Table1'[Priority], 'Table1'[Relates to INC], 'Table2'[INC]) 

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

The problem that you have is that you most likely have multiple rows that match your criteria. I would suggest creating a relationship between your tables and then using a CALCULATE along with an function like MAX or MIN and a RELATED or RELATEDTABLE filter clause.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Hello @Greg_Deckler,

 

thanks for getting back to me in such a short time.

tried to follow your advice but not sure if this was what you were telling me, now I'm not getting any error but I can't see any values, (also done some rearrangement of the columns, as was thinking that ... it can't look for values that are further right than the column from where I want the value.)

 

Table1Table1Table2 with formulaTable2 with formula

image.png forgot to copy the relations

Hi @remi,

 

Could you share a dummy pbix file which can reproduce the issue, so that we can better assist on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploadingSmiley Happy

 

Regards

Hello both - @v-ljerr-msft and @Greg_Deckler,

 

Managed to solve it, thank you.

did the following dax with no relationship and it worked (in the past has the relationship active - that was the cause of not working)

 

Priority checkup = LOOKUPVALUE('Table1'[Priority], 'Table1'[Relates to INC], 'Table2'[INC]) 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.