Forum Discussion
Expression error: The name 'FORMAT' wasn't recognized. Make sure it's spelled correctly
- 8 years ago
Hi bhavana_PBI,
From the screenshot, you are creating a custom column in Query Editor, it will use Power Query. But what you write is DAX. If you want to add a custom column to return month value in Query Editor, please write a formula below:
=Date.Month(Date.FromText([Month Name] & " 15," & "2018"))
Besides, the formula posted by bizbi are DAX, you can refer to this tutorial to do it: https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns
Best Regards,
Qiuyun Yu
Hi bhavana_PBI,
From the screenshot, you are creating a custom column in Query Editor, it will use Power Query. But what you write is DAX. If you want to add a custom column to return month value in Query Editor, please write a formula below:
=Date.Month(Date.FromText([Month Name] & " 15," & "2018"))
Besides, the formula posted by bizbi are DAX, you can refer to this tutorial to do it: https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns
Best Regards,
Qiuyun Yu
- bhavana_PBI8 years agoNew Member