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
amalrio
Helper V
Helper V

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
amitchandak
Super User
Super User

@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 

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@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 

amitchandak
Super User
Super User

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

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

amitchandak
Super User
Super User

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

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

Sorry, I do not understnd.

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.