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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors