"Vlookup" in Power Bi DAx

TheHack22

Board Regular
Joined
Feb 3, 2021
Messages
121
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi All,

Is there a way to simulate these Excel formulas in Power BI?
I'm automating a "Manual" Power BI System where all the computations were done in multiple MS Excel Sheets., then fed into Power BI I have manipulated data in the Query Editor, but don't know much about DAX Lookup Functions.
Found this function: on google "LookupValue" is there a way to nest an IF with LOOKUPVALUE?



a) =IF(B2="Default",VLOOKUP(G2,LU_AdUnit!AR:AT,3,FALSE),B2)
b) =IF(E2="Teads.tv","Out Stream",IF(C2="-",VLOOKUP(G2,LU_AdUnit!AM:AO,3,FALSE),IF(C2="(unknown)",VLOOKUP(G2,LU_AdUnit!AM:AO,3,FALSE),IF(C2="Unknown",VLOOKUP(G2,LU_AdUnit!AM:AO,3,FALSE),C2))))

Imran
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Normally inside a data model, one does not need to perform any vlookup as this is handle via the relationships.
I would suggest you take the time to create a sound data model by normalizing and standardizing the data tables so it fits the DAX rules. Simply moving Excel to DAX without rethinking the solution sounds bad to be honest.

Now VLOOKUP in DAX is RELATED or RELATEDTABLE depending on the table you start from. Strongly recommend reading a few books on DAX before building solutions in PowerBI.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top