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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Date Hierarchy Stacked Column Chart- Not Displaying Correctly

Hi,

 

I am having a simple issue getting a stacked column chart to show the data in the correct chornological order when it comes to months. The data recorded in days, but January should be 2020 but is in position one. It is correct when shown in date hierachy.

 

Settlement 1.PNGSettlement 2.PNG

5 REPLIES 5
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Please create a calendar table and create a one-to-many relationship between the tables. 

Calendar = 
VAR _calendar =
    CALENDAR ( "10/1/2019", "5/1/2020" )
RETURN
    ADDCOLUMNS (
        _calendar,
        "Year & MonNum", YEAR ( [Date] ) & MONTH ( [Date] ),
        "MonthName", FORMAT ( [Date], "mmmm" )
    )

1.gif

For more details, please reference this thread to have  a try: https://community.powerbi.com/t5/Service/January-is-in-the-wrong-place/m-p/921137#M86423

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

I have tried this but it doesn't seem to work for me?

 

Kind regards

 

Dominic

Hi @Anonymous ,

Do you create a new column of Month? Please use the new column rather than the date hierarchy. And please share a few screenshots which is using my formula.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks, I managed to resolve this by creating a new column for month and then a new table for ordering and creating a relationship between the two.

 

PBI - Order By Table.PNG

Anonymous
Not applicable

You need to lookup date tables in Power BI and create one then work from there, because it solves issues like this easily

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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