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

Chronological order for month

I'm using a matrix in a report and is based on year and month and it shows month = April, August,.. how can I change it to show month chronologically? I'm using tabular and a seperate view in SQL server for date/time.

month.PNG

4 REPLIES 4
tkirilov
Resolver I
Resolver I
Anonymous
Not applicable

Thank you @tkirilov  for your answer.

The solution works if I create it in repport, but as I mentioned I'm using an SQL view for date. I created a calculated column with the formula in solution in dimension table in tabular:

=SWITCH([MonthNumber],
1,"Jan",
2,"Feb",
3,"Mar",
4,"Apr",
5,"May",
6,"Jun",
7,"Jul",
8,"Aug",
9,"Sep",
10,"Oct",
11,"Nov",
12,"Dec"

but when I use this column i report it shows nothing in matrix. If I missing something?

@Anonymous ,

 

Please refer the below Link to get your answer:

https://docs.microsoft.com/en-us/archive/blogs/samlester/sorting-by-month-names-in-power-bi

 

Don't forget to give thumbs up 👍and accept this as a solution if it helped you.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

I tried with switch() and created a new column in dimension table i tabular(it shows correctly there). But it shows data in one column without any header . For example if I have values for Dec and Apr, it shows all data in one column and doesn't show header for month in report.

 

 

2.PNG

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.