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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
amaan91
Frequent Visitor

Calculated column to lookup multiple matching values across multiple tables

Hi I am tring to retun service centre name from the accounts table and if it returns blank then return service centre name from another table called e sender. 
there is an active relation ship between both the table but it returns blank after for the second lookup function . 

Column 2 = IF( ISBLANK( LOOKUPVALUE(Consignment[name],Consignment[ShipmentReference],Append2[ConsignmentReference])) , LOOKUPVALUE(Accounts[name],Accounts[storeid],Append2[ServiceCentreId]), LOOKUPVALUE(Consignment[name],Consignment[ShipmentReference],Append2[ConsignmentReference]))
2 REPLIES 2
Anonymous
Not applicable

HI @amaan91 

Your formula looks fine. You'll have to debug your code and data.

Alternatively, share with us your pbix or data, then we can better undersantd where lies the error.

Thanks
A

Hi @Anonymous 

Thank you for the reply, yes you were correct the formule was fine. There were blanks in the data due to which the code was not running properly.

Regards 
Amaan 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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