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
RMV
Helper V
Helper V

LOOKUPVALUE returns blank value

Hi,

 

I'm facing a problem where i use lookupvalue formula with 2 values and returns blank value, and need help on this.

I have 2 tables, with following samples

 

Table #1

Asset_no     Date           Value1

A                 1-Jan-18      1000

B                 1-Jan-18      200

A                 2-Jan-18      1000

B                 2-Jan-18      210

 

Table #2

Asset_no     Date           Value2

A                 1-Jan-18      1000

B                 1-Jan-18      250

A                 2-Jan-18      1100

B                 2-Jan-18      210

 

And i'd like to compare both tables, and expect to have the result in Table #1

result expected:

Asset_no     Date           Value1   Value2_Table2

A                 1-Jan-18     1000        1000

B                 1-Jan-18      200          250

A                 2-Jan-18     1000        1100

B                 2-Jan-18      210         210

Tried to use this formula in this value2 by adding a calculated column:

Value2_Table2 = LOOKUPVALUE(Table2[Value2], Table2[Asset_no], Table1[Asset_no], Table2[Date], Table1[Date]) 

however, the Value2_Table2 returned is blank

I have ensured the data type of Asset_no and Date in both table is the same, and ensure that there's only 1 row to expect in Table2. Need advise what may cause the blank result, and how to correct it.

 

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

it's really weird, but your example works fine on my pc, no joins between the tables
Capture.PNG
are both tables' data types the same? Other than that I cannot think of a reason for it not working on your side



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

3 REPLIES 3
Stachu
Community Champion
Community Champion

it's really weird, but your example works fine on my pc, no joins between the tables
Capture.PNG
are both tables' data types the same? Other than that I cannot think of a reason for it not working on your side



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

sorry, i have found the problem.

tried to delete this post, but can't since a reply has been posted.

Hi @RMV,

You can share your solution, and mark it as answer. So more people will find workaround clearly.

Best Regards,
Angelia

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.