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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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