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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
DagdasAlbag
Helper I
Helper I

Sort years

Hello all,

can someone please tell me how to sort the years in the different columns (see picture)?

I want the first column to say 2021, the second column 2020 and the third column 2019.

Thanks2021-03-12 15_31_25-ProGS-Reporting 2021 (Dreijahresvergleich) - Power BI Desktop.png

2 ACCEPTED SOLUTIONS
PC2790
Community Champion
Community Champion

Hello @DagdasAlbag ,

 

You need to sort the year column in your data in descending order.

If you still see issue, consider adding a conditional column in your data and use the sort by column option to order is according to your need.

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

 

You can also refer this

 

View solution in original post

v-jingzhang
Community Support
Community Support

Hi @DagdasAlbag 

You can enter a table 'SortTable' with Year and SortOrder columns. SortOrder values are based on Year values descendingly. Sort Year column by SortOrder column.

Then create a relationship between SortTable and Original Table on Year column.

At last, select SortTable's Year column into the matrix. 

031801.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @DagdasAlbag 

Has the problem been solved? If so, you may accept the appropriate post as the solution or post your own solution to help other members find it quickly. If you are still confused about it, please provide more details about your problem. Thanks.


Regards,
Community Support Team _ Jing

v-jingzhang
Community Support
Community Support

Hi @DagdasAlbag 

You can enter a table 'SortTable' with Year and SortOrder columns. SortOrder values are based on Year values descendingly. Sort Year column by SortOrder column.

Then create a relationship between SortTable and Original Table on Year column.

At last, select SortTable's Year column into the matrix. 

031801.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

PC2790
Community Champion
Community Champion

Hello @DagdasAlbag ,

 

You need to sort the year column in your data in descending order.

If you still see issue, consider adding a conditional column in your data and use the sort by column option to order is according to your need.

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

 

You can also refer this

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.