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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
milomilo2020
Frequent Visitor

Order Month Column in Pivot Table

Hi, I have this pivot table:

milomilo2020_0-1649853768533.png

 

I want to order the months in a descendent way: Mar 21, Feb 21, Ene 21 in this example.

 

The Month Column is sorted by this one:

milomilo2020_1-1649853848330.png

Which is numerical and is sorted Descendent, but it is not woking in the pivot table.

 

Any ideas? Thanks

 

 

3 REPLIES 3
Thejeswar
Super User
Super User

Hi @milomilo2020 ,

Sorting in the Data View does not guarantee you that your data in visuals will be sorted accordingly.

 

You can sort the data separately in the visuals. Using the ... in the visual header.

Thejeswar_0-1649854678958.png

 

If that does not work due to some reason, if you already have a column that you can use to sort this column, you can use the Sort by columns options that let's you get the desired result

 

Thejeswar_1-1649854798366.png

 

There is also a third option of creating a Custom Sort to get this work if the above two does not work

 

Regards,

 

Hi, thanks but this is not working for the column in a pivot table. The column is sorted by a numeric column created to be like: 202201, 202202, 202203 . I put the sort of that one in Descendent. But the pivot still order it chronologicaly

Hi @milomilo2020 ,

 

You cannot sort by column in the matrix.

You can try custom sorting the column field.

Based on the sample you provided, you have created a sort column for the month and year. You only need to use the rankx function to arrange this column in reverse order.

Desc = RANKX(Sheet2,Sheet2[MY_Sort],,DESC,Dense)

Vlianlmsft_0-1650263193892.pngVlianlmsft_1-1650263201999.png

 

 


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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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