Forum Discussion

alihijazi's avatar
alihijazi
Helper I
10 years ago
Solved

what's wrong with adding the below column?

hello

I'm trying to add a column called Year which is gotten from a date column called Date check below:

 

However when I click OK I get that the YEAR is not recognized!!

 

Please advise

  • Hi. You are in a Power Query editor (where you can edit the data from sources before loading it).

    There you need to user Power Query (M) language.

     

    So you have 2 ways to create Year.

    1) In Power Query editor use = Date.Year([Date])

    2) load data (home - close & load), then create a new column using DAX - there you can use formula you tried (sorry for russian):

4 Replies