Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

powerbi - How to Sort years in ascending or descending orders in power BI

I have my data like -

Course_Code Source
Learning 2019-20
BAC 2019-20
SC_casting 2019-20
Rubber melt 2019-20
Learning 2018-19
Casting 2018-19
BAC 2018-19
Learning 2020-21
Learning 2020-21
Learning 2020-21
question from:https://stackoverflow.com/questions/65880533/how-to-sort-years-in-ascending-or-descending-orders-in-power-bi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

since the data type of that column is text , it would sort the data as per text in either asc or desc format. So in order for you to have the axis as per month order, create a new column of type integer (202012 etc) and sort the text column with this column.

Similar Refr: Sort by full number in axis


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...