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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

LookUpValue not working as expected

I have these two tables:

Holidays:

wolfgangkbwork_0-1651598525647.png

 

and Goals

wolfgangkbwork_1-1651598541688.png

and the following Calculated Column in Holidays 

HolidayValue = LOOKUPVALUE(Goals[HolidayValue],Goals[Employee.id],Holidays[Employee.id],Goals[Year],Holidays[Year])

 

as you can see, these lookup always returns empty and I have no idea why.

 

any help is appreciated

3 REPLIES 3
ddpl
Solution Sage
Solution Sage

Hi,

Try this using merge from power query:

Holliday Table:

VipulGadhiya_0-1651639588694.png

 

Gola Table:

 

VipulGadhiya_1-1651639631983.png

 

 

Merge table:

 

VipulGadhiya_2-1651639678262.png

 

AlexisOlson
Super User
Super User

Are the Employee.id and Year columns the same data type in both tables? You might have issues if, say, Goals[Year] is a text column but Holidays[Year] is an integer column.

Year and Employee.ID are "WHole Number" Data types.

wolfgangkbwork_0-1651599968584.png

wolfgangkbwork_3-1651600037496.png

wolfgangkbwork_1-1651599987749.pngwolfgangkbwork_2-1651600013937.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.