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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
deep01
New Member

Lookup value A table of multiple values was supplied where a single value was expected.

Hello All

I am using lookupvalue function to get one column named as category from table 1 into destination table 2.

I got an error "

 A table of multiple values was supplied where a single value was expected"
When I checked table 1, I found both the columns which is market and category has dupilcate values and  lookup function won't work with duplicate values , it should be unique.
But I cannot make them unique as my category has divided into 3 sections i.e; category 1,2,& 3 and it is the only reason it has duplicate entries in the column.
 

Table 1 contains only two columns, market and category. Even market column has duplicate values based on location.

But still I need category column in my table 2.

Can anyone suggest me alternate to approach to achieve this?

It's an urgent help ..

 

1 REPLY 1
lbendlin
Super User
Super User

Create a temporary table (with VALUES() or DISTINCT()) and then do your lookup against that one.

 

Or limit your return value to TOPN(1)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.