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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JP8991
Advocate V
Advocate V

Replicate Excel Lookup Function

Hi all,

 

I am trying to replicate two columns I have created in Excel in Power BI.

I don't mind if it is done in DAX or M however I would probably prefer M as I can use it in Dataflows or Excel.

 

Excel File

 

File is in the link above and I have highlighted the two columns Purple that I am trying to replciate in Power BI.

 

Would really appreciate any help you can provide.

 

Thanks,

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hi , @JP8991 

I'm sorry  that I'm not  familiar with the formula in Excel, can you explain the logic briefly?

 

Best Regards,
Community Support Team _ Eason

@v-easonf-msft what I am trying to achieve is a running handicap based off each game played.

  • Person registers to play and enters their base handicap in the Customers table.
  • Then each round they play they enter their score, type of game played and length of course.
  • If it is the players first game the handicap adjusts based off their base handicap in the Customers Table
  • After that the handicap is based off the last game played.
Pragati11
Super User
Super User

Hi @JP8991 ,

 

There is a LOOKUPVALUE function in Power BI. Refer following link:

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

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

amitchandak
Super User
Super User

@JP8991 , refer if this can help

https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak @Pragati11  thanks for the guides however I am stuck and could really do with some help on this one.

I don't think either guide can help me in the example I provided.

@JP8991 , sometime back @Greg_Deckler  has strated a series Excel to DAX.

I have one link handy from that -https://community.powerbi.com/t5/Community-Blog/Part1-Reflections-on-Excel-to-DAX-Translation/ba-p/1...

But do not see that function. 

@Greg_Deckler  is there something on the user wanted. or Lookupvalue should suffice the need

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.