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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Anonymous
Not applicable

@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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.