Forum Discussion

Step927's avatar
Step927
Regular Visitor
3 years ago
Solved

Order Matrix Month-Year in ascending order

  Dear Community, I'm having trouble sorting a Matrix  in ascending order by  Month-year (Jan 2013- text format) that takes the last 13 months based on the date picker . Do you have any sol...
  • Anonymous's avatar
    Anonymous
    3 years ago

    To sort the months you can add a custom column to the 'Calendar table' in Power Query that will allow you to sort the [Month_Year_Short] column:

     

    Text.From([Year]) & Text.PadStart(Text.From([Month_No]), 2, "0")

     

     

    If you are needing to create a measure to dynamically look back 13 months I would suggest watching this video. It can be modified to 13 months https://www.youtube.com/watch?v=d8Rm7dwM6gc