Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Date Column to Table

Hi Experts

 

I have the following two columns in my table. Year and Month. so assume Year is 2018 and month is Jan, i want to add a third column that gives me that date as 01/01/2018....for each of the dates in columns Year and Month.

 

  • Hi Anonymous

    How about this for your new column:

     

    DateColumn = DATE(Table1[Year], Table1[Month], 1)

     

     

  • Hi,

     

    This calculated column formula should also work

     

    =1*("1/"&[Month]&"/"&[Year])

     

    Format this column as Date.

5 Replies

  • AlB's avatar
    AlB
    Community Champion

    Hi Anonymous

    How about this for your new column:

     

    DateColumn = DATE(Table1[Year], Table1[Month], 1)

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      many thanks AIB - spot on

  • Hi,

     

    This calculated column formula should also work

     

    =1*("1/"&[Month]&"/"&[Year])

     

    Format this column as Date.