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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
acarolina
New Member

Need Help on Lookup Value & Relationship Table

Hi All, 

 

I have a table containing something like this: 

acarolina_0-1709642843654.png

 

Basically, I want to get the code. So, I combined the excel to the existing database in PBI. 
There's similar info like Basin & GU under Organization table, but Country is under People table. 

So I made this formula - creating a new column in Organization table namely "X Code" and I want to lookup into excel file that I have above. However, since Country section is on another table, I cannot tag it into my equation. 

 

Do you have any other alternatives?

 

X Code =

LOOKUPVALUE(
'X Code'[MSK X Code],
'X Code'[Basin (Code)], 'Dim Organization'[Basin (Code)],
'X Code'[GU (Code)], 'Dim Organization'[GeoUnit (Code)],
'X Code'[Country], RELATED('Dim People'[Country])
)

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Please consider using TREATAS instead.  It has much better performance.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Please consider using TREATAS instead.  It has much better performance.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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