Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Problem with Sort Column



I´m trying to sort "Level 1" value based on the value in "Primary Key" but I´ve also tried "Primary Key 2" without and success.

Only get this error message: There can´t be more than one value in "Level 1 Order" for the same value in "Level 1".







Community Support
Community Support

Hi @Niclasthell 

Thanks for reaching out to us.

>>I´m trying to sort "Level 1" value based on the value in "Primary Key" but I´ve also tried "Primary Key 2" without and success.

where are you trying to sort column? in Excel or in Power BI Desktop?  


Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

@Niclasthell , I think Primary Key 2 should work. In not Create a new column like this and try to sort on that


if(isblank([Lavel1], blank(), [Primary Key 2])


Use this new column

Features || Datamarts: || Field Parameters :
Time Intelligence Decoded : || Learn 50+ Power Query List Functions
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!!! How to get Quick Help !!
Resources | Master Power BI !! Expertise Power BI !! Power BI For Tableau User !!

Helpful resources

collabdays lisbon

CollabDays Lisbon - 26 November 2022

Sessions include practical, hands-on experience that will help you take the next step in your career and know-how.

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.