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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Transform a dax formula to custom column

Hello guys,

 

So i managed to write a DAX formula to do a Vlookup .

IF(MONTH(LOOKUPVALUE('Final PowerBI'[Close Date],'Final PowerBI'[ERP Project Number],'To_investigate'[ERP code],0))=5,"Late creation in SF","")
 
But i want to translate this in power querry editor when creating a new custom column. I tried to paste my formula but it does not work.
 
Best regards,
 
ScrappyS
1 REPLY 1
jthomson
Solution Sage
Solution Sage

Well, no, it won't work in Power Query, as that uses M, not DAX - if you want to do it in Power Query, I'd do some sort of merge/join that replicates your lookup to get the value needed as a first step, then use the conditional logic you need in a second step

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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