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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Zyg_D
Continued Contributor
Continued Contributor

LOOKUPVALUE expects a single value in search column

I try to do a measure that looks up for a value in a related table. I tried the LOOKUPVALUE solution, offered here. But my case should be slightly different, because I receive this error: 

"A single value for column 'ett_data_nuo' in table 'vwEtatas' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

Untitled.jpg

It is exactly what it says, I have many identical values in vwEtatas[ett_data_nuo], but it is the column containing search values (not what I want to return), so I don't get why is it a problem. I want to return data from the table vwData where values from vwEtatas[ett_data_nuo] appear only once. 

1 ACCEPTED SOLUTION
Zyg_D
Continued Contributor
Continued Contributor

I made it.

Not a measure but a new column. I think this was the key. Both formulas work now, but only as new columns, not measures. 

Another thing worth noting, I had to switch from DirectQuery to Import. As can be seen in the image, at first I did not have the "Data" tab available on left, where I can actually add new columns. 

colDataNuo = LOOKUPVALUE(vwData[dat_date],vwData[dat_id],vwEtatas[ett_data_nuo])
colDataNuo2 = MAXX(FILTER(vwData,vwData[dat_id]=vwEtatas[ett_data_nuo]),vwData[dat_date])

 

View solution in original post

4 REPLIES 4
Zyg_D
Continued Contributor
Continued Contributor

I made it.

Not a measure but a new column. I think this was the key. Both formulas work now, but only as new columns, not measures. 

Another thing worth noting, I had to switch from DirectQuery to Import. As can be seen in the image, at first I did not have the "Data" tab available on left, where I can actually add new columns. 

colDataNuo = LOOKUPVALUE(vwData[dat_date],vwData[dat_id],vwEtatas[ett_data_nuo])
colDataNuo2 = MAXX(FILTER(vwData,vwData[dat_id]=vwEtatas[ett_data_nuo]),vwData[dat_date])

 

amitchandak
Super User
Super User

try

firstnonblank('vwEtatas'[ett_data_nuo],true)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Zyg_D
Continued Contributor
Continued Contributor

This returns data from my first table, not from the second (related) table. 

I tried

firstnonblank('vwData'[dat_date],true)

But this takes too long to calculate, I canceled the calculation after 30 mins without seeing the result. 

I usually create a new column like this

 

Max Sales order id = Maxx(filter(sales,Sales[item_id]='Item'[Item ID]),Sales[Order Id]) 

 

to get data from another table.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors