Forum Discussion

caito103's avatar
caito103
Helper I
9 years ago
Solved

Transform a string into date (YYYY-MM) and order it properly

Hello my friends, I searched for solutions for my problem, but this is a bit different as i saw here, hope you can help me. Here i go:   I have a column called "PeriodoLibro" where i have Year and...
  • MFelix's avatar
    9 years ago

    Hi caito103,

     

    Format your Year and Month column into numbers then add the following column:

     

    Month_Name = FORMAT(DATE(Table3[YEAR],Table3[MONTH],1),"mmmm")

    If you just add the formula below you will get a column with a date and then you can format as your want in your visuals.

    DATE(Table3[YEAR],Table3[MONTH],1)

     

    The result should be the one below:

     

     

    Regards,

    MFelix