Forum Discussion
How to extract month name from date
- 7 years ago
- 7 years ago
Thanks for quick response
Month column showing in field list when in enter query editor column not show ??
- 7 years ago
lavdeep Calculated columns and Tables that are created under Data Pane can't be visible/accessible under Power Query Editor. In that case, add a new field in Power Query Editor to extract the Month as below using "Custom Column" under Add Column tab.
= Table.AddColumn(#"Changed Type", "NewFieldNameMMM", each DateTime.ToText([DateField], "MMM"), type text)
- 7 years ago
so if my date is 24/6/2019 and I would like to get a separate column with the month name fro all the dates.
so i should use the below., rite but in this case I am getting error for the word Format sazing its mispellt.
Format([DateField],”MMM”)
- 7 years ago
Hi,
Yours is a calculated column formula (not a M Language formula). I think you are trying to write that formula in the Query Editor - do not write it there.
lavdeep You can add month name column both in Dax or power query editor.
For Pbi Desktop (Dax) you need to add one column and use this
make sure your date column is in Date Format.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.