Forum Discussion

ArchStanton's avatar
ArchStanton
Power Participant
3 years ago
Solved

Sort not working

Hi,   I've ranked these 1-9 in a different column but I cant get it to sort from 0-3mth, 3-6mths and so on because of a Circular dependency     What am I doing wrong? Thanks  
  • Mikelytics's avatar
    3 years ago

    Hi ArchStanton 

     

    You could create a manual table where you maintain the items in a distinct list with an additional column where you define the order of the items. I call it the sorting ID. 

     

    You can bring in the data of the new table by connecting it to your data kodel or by applying a join/merge on the real table with the Age Profile.

     

    Afterwards you should have besides to the Age Prodil also your sort ID in one table. Then you can use the sort by column feature where you sort one column by the order of another one. Please find below an example for a date table where I sort the month name by the month number:

    the natural sorting of my monthname but be wrong. But thanks to the sort by column feature when I use the Month Name in a report it sorts it correctly.

     

    So to make a long story short please make sure that you have next to your AgeProfile Column another numeric column which gives the order of this column. Then use the sort by column feature and you should be good to go.

     

    Best regards

    Michael

    -----------------------------------------------------

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

    @ me in replies or I'll lose your thread.

    -----------------------------------------------------

    LinkedIn