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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
SamWhitehouse
Frequent Visitor

Formatting custom date hierachy

Hi All,

 

I am using a matrix to display the total hours worked per day by resource. 

Image.png

 

For the columns, i have a date field and have used 4 custom fields that extract the Week, Month, Year and Day from the "Date" field and then have put them into a hieracyy.

 

Everything all works (As shown above), however, what i want to do is change the month from a number to text (IE 1 is January). Everytime i have tried it messes up the order of the month. 

 

Any ideas?

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @SamWhitehouse ,

 

Based on the description you have made I assume you have a month number and a month name on your table make the sorting of month name by the month number column:

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column#sort-using-the-sort-by-column-butto...

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
adambhappy
Resolver II
Resolver II

In your date table you should have two columns, one that represents the month in text and one that represents the number of the month.

Once this is in place you select the text column of the month, in the ribbon there is a "Sort by column"-button from which you can select the month number. When this is done the month names will be sorted according to the number.

MFelix
Super User
Super User

Hi @SamWhitehouse ,

 

Based on the description you have made I assume you have a month number and a month name on your table make the sorting of month name by the month number column:

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column#sort-using-the-sort-by-column-butto...

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thankyou for the response! that worked!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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