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
nyn_prshr
Frequent Visitor

Sort Month-Year column in Descending order in Matrix visual

Hi Everyone,

 

I have a "Month-Year" column with values from "Apr 2017" to "Mar 2019". When I put it in Matrix visual, it displayed data from "Apr 2017" to "Mar 2019" i.e. ascending order. So, I want to display data starts from "Mar 2019" to "Apr 2017" i.e. descending order.

Also, I've tried to sort the column in descending order from visual level option and Data View but it wasn't reflected on matrix visual.

 Matrix.PNG

 

Please help. 

 

Thanks

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @nyn_prshr 

You could use Sort by column in Power BI Desktop

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

Step1:

Add a sort conditional column for "Month-Year" column.

for example:

Condition = - ( YEAR('Date'[Date])*100+MONTH('Date'[Date]) )

Step2:

Then select "Month-Year" field and then click Modeling->Sort by column->"Condition"

2.JPG

Result:

4.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @nyn_prshr 

You could use Sort by column in Power BI Desktop

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

Step1:

Add a sort conditional column for "Month-Year" column.

for example:

Condition = - ( YEAR('Date'[Date])*100+MONTH('Date'[Date]) )

Step2:

Then select "Month-Year" field and then click Modeling->Sort by column->"Condition"

2.JPG

Result:

4.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-lili6-msft  I really appreciate your support.

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.