cancel
Showing results for
Did you mean:

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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.

Thanks for helping.

1 ACCEPTED SOLUTION
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'.

There might be easier solution.

Hope this helps!

2 REPLIES 2
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'.

There might be easier solution.

Hope this helps!

Helper V

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors