Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Date Formatting in Custom Columns

Hi all!

Can anyone tell me how to format a date field using a Custom Column where the date is formatted to MMM-YYYY?

  • go to the table that contains the date column

    select the date column

    column tool tab will appear

    in the format, enter mmm-yyyy "in small letters" as below image

     

    tell me what you got, this should work

     

8 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Ok, I'm getting the following error message:

       

       
      Expression.Error: The name 'Format' wasn't recognized. Make sure it's spelled correctly.

       

      And below is my custom column formula:

      = Table.AddColumn(#"Changed Type1", "Month Year", each Format([dReceievedDate],"MMM-YYYY"))

       

      • amaniramahi's avatar
        amaniramahi
        Helper V

        your formula in M (Power Query)

        the formula was given to you is DAX