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
asmagh
Helper I
Helper I

display month correctly

Hello, please when I add the months in a graph they do not appear in the order of January until December I know not how to display them growing from January to December knowing that I The poster by libelle

1 ACCEPTED SOLUTION
Iadem
Frequent Visitor

Create new Table in PBI

1) Calendar = Calendar("01-01-2017";"31-12-2017")

 

Create Columns

2) Month_Nu = Month([calendar])

3) Month = Format([calendar];"MMMM")

 

And Sort Month by Month_Nu

 

And create relationship (Calendar - Your date)

 

Oh, try TRY turn off visualisation sort. Sometimes "visualisation sort" can errors

 

View solution in original post

6 REPLIES 6
vanessafvg
Super User
Super User

@asmagh do you have a month number?

 

if so under the modelling tab set the month name to sort by the month number





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




i try it but still doesn't work 😕 
1.png2.png

@asmagh are you sorting by the number?  not the text?

 

ie 

 

 month name     month no

jan                        1

 

 

you must sort by no not name





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




i'm sorting the name by the id (No) and still don't work

Iadem
Frequent Visitor

Create new Table in PBI

1) Calendar = Calendar("01-01-2017";"31-12-2017")

 

Create Columns

2) Month_Nu = Month([calendar])

3) Month = Format([calendar];"MMMM")

 

And Sort Month by Month_Nu

 

And create relationship (Calendar - Your date)

 

Oh, try TRY turn off visualisation sort. Sometimes "visualisation sort" can errors

 

thks a lot it works 

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.