Forum Discussion

Del235's avatar
Del235
Icon for Helper III rankHelper III
2 years ago
Solved

convert date to month name

How do I convert date to month name?  I see the dax to convert date to month number but not month name  
  • StuartSmith's avatar
    2 years ago

    You could try... and change to the desired format.

     

  • sevenhills's avatar
    sevenhills
    2 years ago

    In the data view,

    create two columns. one for month number and other for month name. 

    Month Number = Format([YourDate], "MM")
    Month Name = Format([YourDate], "MMM")

     

    select the month name column, in the column tools menu, click "Sort by column". Here, by default it will show the month name column. Now, you click "Month number" column. 

     

    In all your visuals of month name, it will be sorted by Month number.

     

    Optional: you can hide the month number column for the users.

     

    Hope it helps!

  • Idrissshatila's avatar
    Idrissshatila
    2 years ago

    Hello Del235 ,

     

    can you show us what do you have, the scenario you're working on so we could help.

  • Del235's avatar
    Del235
    2 years ago

    I have something like this, so this does work.  I didn't want two columns.