Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bshunta
New Member

Sorting Error

I am having trouble sorting data and keep receiving this error.

 

"We can't sort the 'x' column by 'y'. There can't be more than one value in 'y' for the same value in 'x'."

 

The 'x' column is text and sorted alphabetically currently. The 'y' column is literally a column I created called 'sort order' and it is numbers. This worked a day ago, but after updating data and refreshing it within powerbi the graphs will no longer sort properly.

 

I have no idea what this error means or how to fix it. Any help will be very much appreciated.

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@bshunta,

The above error occurs when you have different order values in y column for duplicate values in x column, please review the following example.
1.JPG

Make sure that the order values in y column are same for duplicate values in x column. And you will be able to use the sort by column feature.
2.JPG


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@bshunta,

The above error occurs when you have different order values in y column for duplicate values in x column, please review the following example.
1.JPG

Make sure that the order values in y column are same for duplicate values in x column. And you will be able to use the sort by column feature.
2.JPG


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.