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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SevsBo
Resolver III
Resolver III

Check if results of formula are blank and return another column as result?

I have a formula that goes:

 

IF (column1 <> BLANK(), LOOKUPVALUE (....), column2)

 

However that formula can still return blanks, as not all items that are being lookedup have an equivalent in the other table, so I think it's pulling blanks from there instead of using column2.

 

What I would like to do is to create a formula that basically says:

 

IF( IF (column1 <> BLANK(), LOOKUPVALUE (....), column2) = BLANK(), column3)

 

But this merely increases the number of blank values being returned, so this approach isn't working. Is there an equivalent formula that would basically say: If the results of the first part of the statement are still returnting blank results, use column3?

 

2 REPLIES 2
nvprasad
Solution Sage
Solution Sage

Hi,

 

Please check the below DAX as it is giving the expected results as per your scenario.

 

SalfromTable_2 =
IF (
ISBLANK ( Table_1[ID] ),
Table_1[Sal1],
LOOKUPVALUE ( Table_2[Sal2], Table_2[ID], Table_1[ID] )
)

 

nvprasad_0-1685979674531.png

 

Appreciate a Kudos! ‌‌
If this helps and resolves the issue, please mark it as a Solution! ‌‌

Regards,
VN

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.
NaveenGandhi
Super User
Super User

Hello @SevsBo 

Check the attached PBIX, I have made a similar scenario.

 

Let me know if this helps!

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors