Forum Discussion

Chrispate03's avatar
Chrispate03
New Member
2 years ago

URGENT! DATES

Good afternoon. I am attempting to create periods on my x-axis for 2023 and 2024. I have these periods as the months of the year (ie., January=1), but I can not get the periods to start over for 2024. It is putting all of my periods in the same continuous sequence on the x-axis that its period number relates to. So January 2024 (or period 1) is being lumped next to January 2023 (period 1). Any help would be greatly appreciated!

6 Replies

  • Use a calendar table in your data model and put the Date column into the X axis.  Power BI will take care of the correct display aggregation.

    • Chrispate03's avatar
      Chrispate03
      New Member

      I am still unable to achieve the result I am looking for. I have created a calendar table and have connected the two on the model view. But, when I try to use the calendar to sort the information consecutively across multiple years I get the following. 

       

       

      If I just put the period number data from my original source data it for whatever reason it places 2024 at the beginning of the chart instead of after 2023. 

       

      This is the chart I hope to achieve but with the dates in the right order and to include all period numbers. I have tried to set the x-axis to continuous but this is the way that it displays by placing 2024 before 2023

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Chrispate03 

     

    Based on your needs, I have created the following table.

     

    You just need to keep the year and month hierarchies in the visual.

    This is the result you want:

     

     

     

     

    Best Regards,

    Jayleny

     

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

     

     

     

     

     

    • Chrispate03's avatar
      Chrispate03
      New Member

      I am still unable to achieve the result I am looking for. I have created a calendar table and have connected the two on the model view. But, when I try to use the calendar to sort the information consecutively across multiple years I get the following. 

       

       

      If I just put the period number data from my original source data it for whatever reason it places 2024 at the beginning of the chart instead of after 2023. 

       

      This is the chart I hope to achieve but with the dates in the right order and to include all period numbers. I have tried to set the x-axis to continuous but this is the way that it displays by placing 2024 before 2023

      • lbendlin's avatar
        lbendlin
        Super User

        Doesn't look like you put the date column on the X axis.

         

        Your chart is hard to read.  May want to make the background more subtle.

  • I am still unable to achieve the result I am looking for. I have created a calendar table and have connected the two on the model view. But, when I try to use the calendar to sort the information consecutively across multiple years I get the following. 

     

    If I just put the period number data from my original source data it for whatever reason it places 2024 at the beginning of the chart instead of after 2023. 

    This is the chart I hope to achieve but with the dates in the right order and to include all period numbers. I have tried to set the x-axis to continuous but this is the way that it displays by placing 2024 before 2023