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
aftermath85
New Member

How to recreate this in Power BI - IF(VLOOKUP)= "var" IF(VLOOKUP)

Hello,

 

I have this formula from Excel that I am trying to replicate in Power BI in either Power Query Editor or as a Measure.

Excel formula: 

=IF(VLOOKUP(I92436,references!A:C,3,FALSE)="BVX",IF(J92436<references!$F$2,"BVX","WC-BVX"),VLOOKUP(I92436,references!A:C,3,FALSE))

 

I have 3 datasets I'm connecting to, 2 reference tables that mirror the reference tab in the above Excel and the main dataset, also mirroring the above Excel dataset.

 

What I have so far in Power BI, I did this as a Measure, since Power Query Editor didn't give many options. 

Location = LOOKUPVALUE(Scraps[LOCATION_NO],'Reference Table'[Summary 2],TRUE(),'Reference Table'[Beavex transition date].[Date]) RETURN IF((Scraps[DATE_APPLIED] < 04/26/2019, "BVX","WC-BVX"),LOOKUPVALUE(Scraps[LOCATION_NO],'Reference Table'[Summary 2]))
aftermath85_0-1674152308887.png

Any help would be greatly appreciated.

 

Thank you,

Dusty

1 REPLY 1
amitchandak
Super User
Super User

@aftermath85 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

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.

Top Solution Authors