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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dw0120
Regular Visitor

Add on to existing Lookup Value

I have a column made up of a Look up value below...

NewColumn = LOOKUPVALUE('TABLE1'[Column1],'TABLE1'[Column2],TABLE2[Column3])
 
I need to add a If NewColumn is blank then pull from TABLE2[Column4]. How can I add that to the existing column above?
 
1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @dw0120 

 

Based on your description, I created data to reproduce your scenario.The pbix file is attached in the end.

Table1:

c1.png

 

Table2:

c2.png

 

You may create a calculated column as below.

NewColumn = 
var _val = LOOKUPVALUE(Table1[Column1],Table1[Column2],Table2[Column3])
return
IF(
    ISBLANK(_val),
    LOOKUPVALUE(Table1[Column1],Table1[Column2],Table2[Column4]),
    _val
)

 

Result:

c3.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @dw0120 

 

Based on your description, I created data to reproduce your scenario.The pbix file is attached in the end.

Table1:

c1.png

 

Table2:

c2.png

 

You may create a calculated column as below.

NewColumn = 
var _val = LOOKUPVALUE(Table1[Column1],Table1[Column2],Table2[Column3])
return
IF(
    ISBLANK(_val),
    LOOKUPVALUE(Table1[Column1],Table1[Column2],Table2[Column4]),
    _val
)

 

Result:

c3.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

use the COALESCE() function.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors