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

LOOKUPVALUE returns all blank, I cannot find the reason

I have two tables. Territory and Sales. I wanna create a column in Sales table named BU from Territory table.

Poisson_pbi_0-1672481531224.png

I use LOOKUPVALUE like below, but it returns all blank.

Poisson_pbi_0-1672480283364.png

When I bulid a 1:* relationship between these two tables and use RELATED, it works well. In my model there is the other relationship, I make it inactive and bulid this one for testing.

Poisson_pbi_1-1672480500391.png

I also checked if there are invisible blanks or sth with RELATED, nothing wrong was found.

Poisson_pbi_2-1672480592163.png

In the community, there are also some questions like LOOKUPVALUE not working, but no good answers for my question. 

I wish someone master could help me. Thank you in advance.

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to creae a sample pbix file like below.

Please check the below picture and the attached pbix file.

It is for creating a new column.

I hope the below can provide some ideas on how to create a solution for your data model.

 

Jihwan_Kim_1-1672481684733.png

 

Jihwan_Kim_2-1672481771907.png

 

 

BU CC = 
LOOKUPVALUE(Dim_Territory_History[BU], Dim_Territory_History[Key], 'Fact'[BU_Key] )

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Anonymous
Not applicable

When I simulated some data myself, LOOKUPVALUE also works well. But in my model, it doesn't work.

Hi,

Thank you for your message.

Please share your sample pbix file's link here, and then I can try to look into it to come up with a more accurate solution.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

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