Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Rolling 12M Date Order based on Selection

Hi, Im a new user to Power BI and have been trying to design my reports. I have looked up previous Rolling 12 Month questions and was able to source the below Dax statement My final hurd...
  • danextian's avatar
    danextian
    6 years ago

    Hi Anonymous 
    Did you want to show the period as "MMM YY"? If so, you can create a custom column for that 

    Month and Year = 
    FORMAT ( Table[Date], "MMM YY" )
     
    Month and Year Sort= 
    FORMAT ( Table[Date], "YYYYMM" )

    The second formula above is for sorting the first formula. Once you have created these calculated columns, select Month and Year, go to Column Tools and Sort by Month and Year Sort.