Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Creating a continuous date hierarchy with week number

I am trying to create a line plot with time on the x axis, and sales on the y axis. I want to the x axis unit of time to be year and week.

 

To do this acheive this I:

  1. Created a date table
  2. Created a custom date hierachy that includes Year, and Week number (using WEEKNUM('date',1)).

 

The problem is that when I pull this hierachy into the the x-axis, it is categorical. When I try and switch to continous, I get an error. Is there any way this can be done?

3 Replies

  • TeigeGao's avatar
    TeigeGao
    Solution Sage

    HI Anonymous ,

    How did you create this date table? Does it contain continous date? In order to properly show dates as "continuous" data, you need to be using dates from a continuous date table.

    Best Regards,

    Teige

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for your response. I created the date table using the auto calendar function, so there should be a continous range of dates in there.

       

      Date Table = CALENDARAUTO()
       
       
  • Has a solution been found to this yet? I am also quite new to PowerBI and I'm trying a similar thing to the questioner and getting the same issue.