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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Multiple Sorting Concatenated Column

Hello, I'm having some trouble sorting a concatenated colum.

My goal is to have a column which says the day and the 3 first letters of the month, for example, today "20 Sep"

I have a column for the day, another for the month and a third one which is calculated

 

Capture.PNG

 Date = 'Query1'[Day]&" "& LEFT('Query1'[Month];3)

 

 

 

 

 

 


I used "Sort by Column" in a fourth column which is the Month Number, so when I use it in a graphic it shows it in the correct order:

 

Capture1.PNG

 

As you can see, it shows the months in order, but the days are disorganized

Please let me know if you need any more info that could help solve this issue. 

 

Thanks a lot in advance

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

I suggest you should create a column that contains a value that will be calculated like this month * 100 + day, then you can use this

column to order the date column.

  • the value for the 5th of october will be 10 * 100 + 5 = 1005
  • the value for the 2nd of april will be 4 * 200 = 402 

It may become necessary to consider a year as well, the value then will created by this little formula:

year * 10000 * month * 100 + day

 

Regards, 

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey,

 

I suggest you should create a column that contains a value that will be calculated like this month * 100 + day, then you can use this

column to order the date column.

  • the value for the 5th of october will be 10 * 100 + 5 = 1005
  • the value for the 2nd of april will be 4 * 200 = 402 

It may become necessary to consider a year as well, the value then will created by this little formula:

year * 10000 * month * 100 + day

 

Regards, 

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.