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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Converting Quarter & Year to Date

Hi all,

 

I have a quarter & year column in my date table and am getting an error message when i try to convert it to a date, i have checked in the query editor and quarter & year is marked as a date field.

 

Just wondering if i am missing something obvious?

 

Thanks

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Do you know how to sort a column by another column?

View solution in original post

7 REPLIES 7
mangaus1111
Solution Sage
Solution Sage

Do you know how to sort a column by another column?

Anonymous
Not applicable

i didn't know that this was possible!

Thanks for the tip.

mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

you have already in your date table this column in whole number format that can help you to sort the column [Quarter & Year] in your visual.

 

mangaus1111_0-1667769511156.png

 

mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

can you send a screenshot of your date table?

Anonymous
Not applicable

Hi, thanks for picking up the question:

 

lee215_0-1667767525698.png

 

Hi @Anonymous ,

I don´t understand why you need to convert the [Quarter & Year] column from text to date. Normally in the date table only the column [Date] must be in date format.

 

Are you sure that the [Quarter & Year] column in Power Query is in date format? Do you have a screenshot of it?

Anonymous
Not applicable

the reason i wanted to convert was so that i could sort by it, when i put it on my x axis it doesn't sort in the right order, it sorts Q1 2020, Q12021, Q22020 Q22021 and so on. I have tried to change the sort options on the graph but am strugglging 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.