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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

To create months in ascending orders

Hi All,

 

i have created a date hierarchy for month and week starting march 2019. However, the month gerts displayed in April, June, march, May  instead of June, May, April , march. The month and week are created throuigh a lookup function from another table.

 


Capture 1.PNG

 

Capture.PNG

 

Sorting the table does not give the desired result , either.

 

Thanks,

2 REPLIES 2
jthomson
Solution Sage
Solution Sage

Try making a column that gives the date field you're using something numerical that you can sort on (i.e. this month is 201906), then telling your hierarchy to sort by that. That said, I can't see on your screenshot that you're doing anything that isn't available out of the box, so why not use the automatic hierarchy that gets produced?

Anonymous
Not applicable

Thanks,

 

The automatic date hierarchy on "Order Date" here does not have week. Thetable I am trying to build requires month and week.Capture 1.PNG

 

 

I did create a numeric date key and sorted it. Should I add this field to the table on the report , since prior sorting does not change the result.

Capture.PNG

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (4,389)