Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sorting error - can't be more than one value

Hi,   i try to sort the Slicer from Modeling pane >sort by column >sort by YearFinMonthDay (which is the year the month and the day) so there cannot be a duplicate. But its giving me this error 't...
  • HotChilli's avatar
    HotChilli
    7 years ago

    It's a little tricky because we can't see the YearFinMonthDay values you have.

    However, the error is caused because there are more than 1 value for YearFinMonthDay for one WorkWeek e.g. 29/ Mar/21 - 04/Apr/21 will have 5 values of YearFinMonthDay.  Powerbi doesn't know which to use.

     

    You need to find something to order by that has the same granularity as WorkWeek, something like Year and weeknum combined OR Year and 1st Day of workweek combined.

    That's my theory.