Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k 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 Reply

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...