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
Anonymous
Not applicable

Lookup value from another table

Hi Experts

 

Not sure whats the best route tp tackle this, either via a lookup or related or related table function. I have two tables.

Table A Columns

Country_NM

Country_ISO_CD

 

Table B Columns

Country_Origin_ISO_CD

Country_Origin_NM

I want to lookup/Match from Table B Country_Origin_ISO_CD with column Country_NM in Table A and what the result is in Column Country_ISO_CD in Table A return that into a new column in Table B Country_Origin_NM.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You can create a measure in TableB using DAX below:

 

Column =
LOOKUPVALUE (
    TableA[Country_ISO_CD],
    TableB[Country_Origin_ISO_CD], TableA[Country_NM ]
)

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
jwelch176
Frequent Visitor

I've tried this, unsuccessfully, in Power Bi Desktop Version: 2.103.881.0 64-bit (March 2022).  Does the query or formatting need to be changed since the solution is about 2 years old?

v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You can create a measure in TableB using DAX below:

 

Column =
LOOKUPVALUE (
    TableA[Country_ISO_CD],
    TableB[Country_Origin_ISO_CD], TableA[Country_NM ]
)

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

thanks Jimmy excellent feedback once again

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.