Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sort by column not working

I have a Matrix and I want the Row item to be sorted in a specific order.

I created a column in Query Editor called 'Order' and i've used an IF statement to define the order as 01, 02, 03 etc. I ensured the column is a Whole Number

 

I've then sorted my Row item by the Order column in the Modelling tab, and it's made no difference to the order whatsoever!

 

Below are some screenshots, have I missed something obvious?

 

Screenshot1.PNGIn Query Editor, the Order column is 'whole number'Screenshot2.PNGThe M Query formula used to create the 'Order' columnScreenshot3.pngThe Row item is sorted by 'Order'Screenshot4.png

  • Anonymous's avatar
    Anonymous
    7 years ago

    Greg_Deckler

     

    Wow do I feel stoopid. It had not occured to me to check WHAT order it was using. When I did, I realised it WAS using the right order. I must have had my Matrix sorted by something else, when I clicked on my Row Item to sort by that, it works!

     

    Sorry for all the fuss!

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Greg_Deckler

       

      That's just a bad preview - if the P&L item is Gross Written Premium (which all of the first rows are) then the order number is 1. 

      I have checked the full dataset and there are numbers 1-19 in there I promise. 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Greg_Deckler

         

        Wow do I feel stoopid. It had not occured to me to check WHAT order it was using. When I did, I realised it WAS using the right order. I must have had my Matrix sorted by something else, when I clicked on my Row Item to sort by that, it works!

         

        Sorry for all the fuss!