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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How to apply IFNA and VLOOKUP in Power BI

I have two tables - Table A and Table B. Table A contains SKU and Item Number. Table B contains SKU, Item Number and Weight.

I want to lookup the weight from Table B in Table A based on SKU column, if the same sku is not present in Table B then the lookup should be based on item number.

Here is the formula which I use in excel : IFNA(VLOOKUP(B3,$G$2:$I$5,3,0),VLOOKUP(C3,$H$2:$I$5,2,0))

StoryTeller12_0-1671011822423.png

 

2 REPLIES 2
1Daniel993
Helper III
Helper III

Hello you need LOOKUPVALUE and use in this way

LOOKUPVALUE( <result_columnName>,
<search_columnName>,
<search_value>
[, <search2_columnName>, <search2_value>]…
[, <alternateResult>] )


https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax

Anonymous
Not applicable

Hi @1Daniel993 ,

On using the formula you suggested, I'm getting below error -

 

StoryTeller12_0-1671095436252.png

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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