title: Change generateseries order in Dax
body: <p>I have this dax code</p>
  <p>var ....</p>
  <p>Return</p>
  <p>UNION(ROW(Value,1), Row(Value,2),
  GENERATESERIES( Last5Years, SelectedYear, 1) ,
  SUMMARIZECOLUMNS(Season Code))</p>
  <p><a href="https://i.stack.imgur.com/HbF9o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HbF9o.png" alt="That create this table
  Name    2018    2019    2020    2021    2022
  A   1   8   8   5   3
  B   2   6   2   3   5
  C   3   3   3   4   6" /></a></p>
  <p>but user want the table by Year descending, like this</p>
  <p><a href="https://i.stack.imgur.com/zBxoX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zBxoX.png" alt="enter image description here" /></a></p>
  <p>Which dax function i need to do to change the order of the series</p>
  <p>Thanks so much for your help</p>
  <p>Javier</p>