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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Display month and year in Descending order in line and stacked column chart

I have line and stacked column chart in x-axis i have month/year like 11/2021,12/2021,12/2020 i need to display in descending order.How can i achieve it?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Tested stacked column charts can be selected directly on the view in descending order.

vzhangti_0-1640067395373.png

 

Add calculation column:

Rank = RANKX('Table',[date],,DESC,Dense)

vzhangti_1-1640068596420.png

vzhangti_2-1640068650415.png

Adding Rank to the X-axis of the line chart table allows you to sort in ascending and descending order.

 

Best Regards,

Community Support Team _Charlotte

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-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Tested stacked column charts can be selected directly on the view in descending order.

vzhangti_0-1640067395373.png

 

Add calculation column:

Rank = RANKX('Table',[date],,DESC,Dense)

vzhangti_1-1640068596420.png

vzhangti_2-1640068650415.png

Adding Rank to the X-axis of the line chart table allows you to sort in ascending and descending order.

 

Best Regards,

Community Support Team _Charlotte

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

amitchandak
Super User
Super User

@Anonymous ,

from nov-21 onward we have option sort legend in the visual in three dots.

 

else create a new columns

 

month/year 1 = [Month year]

Month year sort = year([Date])*100 + month([Date])

sort Month/year1 on month year sort and use month/year 1 in the visual

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors