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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.