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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
wenners68
Helper II
Helper II

Order column chart by month over multiple years

Hi,

 

I want to sort my data by month over several years and end up with a chart showing "Jan 2017", , , and so on until "Jan 2020"

I created a column (MonthYear) with the format above and can sort the data if I do it for a 12 month period, but nothing longer.

 

Is there an easy way to do this? 

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @wenners68,

 

By the solution from @bizbi, have you solved the problem?

 

If you need additional help, please share some data sample and expected output, so that we can help further investigate on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @wenners68,

 

By the solution from @bizbi, have you solved the problem?

 

If you need additional help, please share some data sample and expected output, so that we can help further investigate on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, yes and I have marked it as accepted.

bizbi
Advocate I
Advocate I

1. Format the year column as a whole number [Year].

2. Format the month column in MM format using format function in a calculated column:

Month MM=FORMAT(MONTH('Table'[Date]),"00")

3. Next, concatenate both these columns to give the Order column:

Order=[Year] & [Month MM]

4. Use this column for sorting (format as whole number if necessary).

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.