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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
drallam
Helper II
Helper II

LOOKUPVALUE ERROR

Hi I'm trying to look up a region(text type) and assocaite zipcode to it, in Table 1 from Table 2 where both zipcode(whole number type) and region(text type) are present.

Can anyone please help me undertand how to write the formula. It gives me errors. Also this is my first day in Power BI, so if this looks like a stupid question please excuse me.

 

thanks!

 

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @drallam,


You can create a calculated column using the formula, please try and check if it returns expected result.

associate zipcode=LOOKUPVALUE(Table[zipcode],Table[region],"the region wanted")


If not, what's your error message? And what does your resource table look like? Could you please share your sample table or details for further analysis?

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Employee
Employee

Hi @drallam,


You can create a calculated column using the formula, please try and check if it returns expected result.

associate zipcode=LOOKUPVALUE(Table[zipcode],Table[region],"the region wanted")


If not, what's your error message? And what does your resource table look like? Could you please share your sample table or details for further analysis?

Best Regards,
Angelia

Angelia!

 

thank you. It worked. I was thinking to enter a value in the <search_value> field. I specified the column and worked perfect.

 

I also figured out a workaround until in this mean time. I used RELATED function and specified that table. It pulled in the zipcodes i needed.

 

Thanks for your input!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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