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

sorting a column with multiple vlaues

Hi all, 

 

I want to sort the SPLIT_COLUMN by year, when I do that it gives me an error saying cannot sort when you have miltiple values, 

 

any workaround to overcome this issue.

 

amalrio_0-1606098861390.png

 

 

amalrio_0-1606099365666.png

 

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@amalrio , Not clear final sort need. but try like

new columns

Split_column 1 =[Split_column]

Split_column sort = [Year] & " " & [Split_column]

 

Sort Split_column 1 on Split_column sort and use Split_column 1 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

5 REPLIES 5
Super User IV
Super User IV

@amalrio , Not clear final sort need. but try like

new columns

Split_column 1 =[Split_column]

Split_column sort = [Year] & " " & [Split_column]

 

Sort Split_column 1 on Split_column sort and use Split_column 1 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Super User IV
Super User IV

@amalrio , Sort column can not same value for to different values in the main column 

 

Say I have A and B two values in main column , sort column can not have 1 and 1 for both these .

Also If I have A and A on main column I can not have 1 and 2 for these two values .



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

So, what you would suggest to make this collumn sort as I required. Thanks a lot mate.

Super User IV
Super User IV

@amalrio , sort column need to have same granularity as the main colum.

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Sorry, I do not understnd.

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors