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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
azaterol
Helper V
Helper V

Sort in matrix months?

Hey all,

 

is it possible to sort the months in descending order in a matrix? So August is first at the top.

 

sort.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Thanks for helping.

1 ACCEPTED SOLUTION
Luuky
Helper I
Helper I

Hi Azaterol,

 

This is how I would do it:

Go to data

In your Date table I would create 2 additional columns called 'MonthDesc' and 'MonthDescKey'.

MonthDesc = FORMAT('Date'[Date], "MMM")

MonthDescKey = 32 + (-1*MONTH('Date'[Date]))

Then sort 'MonthDesc' by 'MonthDescKey' (Option: Sort By column)

Once that is done you can go to report view open a table with 'Year' and 'MonthDesc' and sort by 'Year'.

 

Luuky_1-1660230392181.png

 

There might be easier solution.

Hope this helps!

View solution in original post

2 REPLIES 2
Luuky
Helper I
Helper I

Hi Azaterol,

 

This is how I would do it:

Go to data

In your Date table I would create 2 additional columns called 'MonthDesc' and 'MonthDescKey'.

MonthDesc = FORMAT('Date'[Date], "MMM")

MonthDescKey = 32 + (-1*MONTH('Date'[Date]))

Then sort 'MonthDesc' by 'MonthDescKey' (Option: Sort By column)

Once that is done you can go to report view open a table with 'Year' and 'MonthDesc' and sort by 'Year'.

 

Luuky_1-1660230392181.png

 

There might be easier solution.

Hope this helps!

@Luuky  thank you! 

now I have sorted the months in descending order, I would also like to sort the days in descending order how would you do that for the days?

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.