Forum Discussion

IanCockcroft's avatar
IanCockcroft
Icon for Post Patron rankPost Patron
1 year ago
Solved

Sorting Error: Can't be more than one value in 'x' for the same value in 'y'

Hi all, I am trying to sort a text column by an index and get an error. i have tried all the solutions sggested but still the error. I even tried to remove all  the columns and only had 1 row. no ...
  • bhanu_gautam's avatar
    1 year ago

    IanCockcroft If it is not possible to ensure unique values in the 'Index' column, consider sorting the 'Line Item' column by a different column that does have unique values.

     

    If you need to maintain the current structure, you can create a composite key by combining multiple columns to ensure uniqueness. For example, you can concatenate the 'Line Item' and 'Index' columns to create a new column with unique values.

     

    CompositeKey = CONCATENATE([Line Item], [Index])

     

    Then, you can sort the 'Line Item' column by this new 'CompositeKey' column.