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

View all the Fabric Data Days sessions on demand. View schedule

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
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.