Welcome to OStack Knowledge Sharing 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 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 OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...