Forum Discussion

FVal's avatar
FVal
Helper I
6 years ago
Solved

Axis - use date per Week

Hi experts,

 

We have to present in some reportds data structured by week number or similar.

 

I tried to use bins, set 7 days and use it as such, but it looks a bit awkward and also I can't get the bin name changed to week name.

 

Is there another way of dividind a date field into weeks of the year and use it in the Axis part?

 

Also, is this a generic thing, to have the week missing but still have the Day, Month, Year or is it something that can be enabled in the settings?

 

Thank you,

V.

  • FVal add column with following expression:

    x = "Week " & FORMAT( WEEKNUM( 'Calendar'[Date] ), "0#" )

     

    Would appreciate Kudos 🙂 if my solution helped.

     

     

9 Replies

  • FVal you can add another column in the calendar table. Do you want start of the week or end of the week date? When the week starts? Sunday/Monday?

    • FVal's avatar
      FVal
      Helper I

      Hi Parry,

       

      Thank you for your quick reply. I would need to have it same as the calendar week number, as example below:

       

      Week 01December 30, 2019January 5, 2020
      Week 02January 6, 2020January 12, 2020
      Week 03January 13, 2020January 19, 2020
      Week 04January 20, 2020January 26, 2020
      Week 05January 27, 2020February 2, 2020
      Week 06February 3, 2020February 9, 2020
      Week 07February 10, 2020February 16, 2020
      Week 08February 17, 2020February 23, 2020
      Week 09February 24, 2020March 1, 2020
      Week 10March 2, 2020March 8, 2020
      Week 11March 9, 2020March 15, 2020
      Week 12March 16, 2020March 22, 2020
      Week 13March 23, 2020March 29, 2020
      Week 14March 30, 2020April 5, 2020
      Week 15April 6, 2020April 12, 2020

      etc.

       

      Best Regards,

      V. 

      • parry2k's avatar
        parry2k
        Super User

        FVal add column with following expression:

        x = "Week " & FORMAT( WEEKNUM( 'Calendar'[Date] ), "0#" )

         

        Would appreciate Kudos 🙂 if my solution helped.