Forum Discussion
How do i sort a column with duplicate values by another column
- 9 years ago
Thanks Angelia,
That fixed the calculated column however when i try to sort the 'taskname' column by it i get the following error
"This column cant be sorted by a column that is already sorted, directly or indirectly by this column"
I've actually implemented a workaround by concatenating the 'TaskIndex' and 'TaskName' values and sorting by this instead. So now i have..
ID1 Establish routine
ID2 Set Trap
ID3 Drop Anvil
ID4 Chug a beer
It's not ideal as i would prefer the task ID not to display in the visual however at this stage its a cosmentic issue rather than a functional one.
Thanks anyway for your efforts
Kind regards
Alex
Thanks Angelia,
That fixed the calculated column however when i try to sort the 'taskname' column by it i get the following error
"This column cant be sorted by a column that is already sorted, directly or indirectly by this column"
I've actually implemented a workaround by concatenating the 'TaskIndex' and 'TaskName' values and sorting by this instead. So now i have..
ID1 Establish routine
ID2 Set Trap
ID3 Drop Anvil
ID4 Chug a beer
It's not ideal as i would prefer the task ID not to display in the visual however at this stage its a cosmentic issue rather than a functional one.
Thanks anyway for your efforts
Kind regards
Alex
I agree this is not an idea solution. If there is a duplicate value, but it has a unique ID from another system, we should not need to remap these items to new names with a sort value as a prefix. In principle, I understand why powerBI has created this limitation, but we should be able to define hidden attributes which make duplicate values unique so that they can be sorted correctly in visualizations.