Forum Discussion

jcastr02's avatar
jcastr02
Post Prodigy
6 years ago
Solved

Date format mmm-yy

Hello I am trying to use format DAX to convert to a mmm-yy format, but the column with the date is not coming up which is completion time when I try to enter it into DAX formula.  

 

  • jcastr02 are you creating a new column or a new measure?  So you create completion time in the query editor, you then push it to the visual pane and now you are trying to format that field in DAX but when you create a new column you can't see the date?  Are you sure you creating a new column and not a new measure?

12 Replies

  • VijayP's avatar
    VijayP
    Community Champion
    Use this DAX in Report View instead of in power Query. 
    ddmmm = FORMAT([Date],"MMM-YY")
      • VijayP's avatar
        VijayP
        Community Champion

        To get Date information you must have one date column

        Without Date column you cant manage any Date Hierarchy

    • dmercier's avatar
      dmercier
      Frequent Visitor

      Hi Vijay, This worked great.  However it stores the data in the field as TEXT and if I change it to DATE, I get ERROR message.  If it's not a DATE, I cannot use it in a trend chart graph?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Select the column and go to "column tools"

    Change the Data Type as "Date"

    set the Format as mmm-yy