cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Niclasthell
Helper I
Helper I

Problem with Sort Column

Hi,

 

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".

 

Regards:

Niclas

 

Niclasthell_0-1657718645539.png

 

2 REPLIES 2
v-xiaotang
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.

amitchandak
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



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
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 !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors