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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.