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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.