Forum Discussion

enzo18's avatar
enzo18
Frequent Visitor
7 years ago

Timeline slicer - ISO week

Hi,

is there any possibility how to set ISO week date system in Timeline slicer?

For example 2018-12-31 should be W1 (first day of week is Monday).

Thank you,

Vaclav

23 Replies

  • v-evelk's avatar
    v-evelk
    Microsoft Employee

    Hi guys,

     

    We are fixing the issue.

    ETA is early February.

     

    Kind Regards,

     

    Evgenii Elkin,
    Software Engineer
    Microsoft Power BI Custom Visuals
    [email protected]

    • trutz's avatar
      trutz
      Advocate IV

      Hi v-evelk ,

      Do you have an update for us as it is already April?

      Best regards,

      Trutz

  • ora's avatar
    ora
    Frequent Visitor

    We need this fixed urgently. The slicer now fools the users that depend on week selection. We use the Timeline Slicer since it is far superior in user-friendliness to other slicing alternatives (especially so when you want to alternate between year/month/week and sometimes day selections).

    I wrote this up like an email:

    Hi,

    We are unfortunately experiencing a bug with the Timeline Slicer developed by Microsoft. Ref. https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380786?tab=DetailsAndSupport 

    We have the slicer in its latest version (2.1.1). The slicer is not selecting the correct weeks for us. It seems to have a built in function to give week numbers based on the US ordering of weeks, and not the standard ISO weeks which is used in Europe.

    Take the year 2017 as an example. The slicer shows 53 weeks there (since in the US, when 2017 starts its week 1 with the Sunday, 2017 ends up with 53 weeks), while the ISO week calendar only has 52 weeks in 2017. We had previously assumed it to support ISO-weeks when it let us select start of the week = โ€œMondayโ€, but have now discovered there is no ISO-week logic in this slicer.

    Will this slicer offer support for ISO weeks in the future?

    We need it urgently fixed if possible, since we do not really have a good date slicing alternative in Power BI. Please let us know if it is possible to get faster resolution if we participate in some fashion. Could you suggest alternatives if it is not possible to get a quick fix? This slicer is a core component of our reports, and the default slicer cannot be compared in terms of user-friendliness.


    Please see the image below that illustrates this. To recreate this, simply use a date dimension built with iso week numbers, and let date fill the timeline slicer. In this example, I expected the same days selected when I click โ€œW1โ€ in the slicer, and not โ€œW2โ€. This is why I also show the weeks below.


    ("Mandag" = Monday, "Fรธrste dag i uken" = first day of week)

    My interpretation is that this issue occurs for all years where january 1st is a friday, saturday or sunday, since the week numbering rules are then different. I.e. 3/7 (43%) of all years are displayed incorrectly for us in this slicer.

    v-viig could you please give us an update?

    • akaefer's avatar
      akaefer
      Advocate I

      Hi ora,

       

      I was contacted by a MS Software Developer and asked for a sample repo.

      So I sent him a minimized sample repo which includes my custom date table and Time Slicer Visual in two flavors.

      Week Start is set to Monday on both of them.

      On the left Fiscal Year Start is set to 1st Jan:

      On the right Fiscal Year Start is set to 4th Jan:

      Hopefully we get a fixed version, soon! ๐Ÿ˜‰

       

      Best regards

      Armin

  • Hi,

    I think it's because the American method of week numbering differs from the ISO / European week numbering method. We over here in Europe, usually use Monday as the start of the week and in case January 1 is on Monday, Tuesday, Wednesday or Thursday, that week is the 1st week of the next year. In case January 1 falls on Friday, Saturday or Sunday, the weeknumber is increased +1 with the previous weeknumber of last year. This is different from the "USA"-method, where the first week of the year depends on what day January 1 falls: in case it's a Sunday, PowerBI calculates week 1, otherwise it calculates a next weeknumber of the previous year for that week.

     

    Outlook uses two settings to solve this:

    - First day of week (in USA: Sunday, but in Europe, according to ISO weeknumbers: Monday)

    - First week of year (in USA: Starts on January 1, but in Europe, according to ISO weeknumbers: First 4-day week).

     

    In my opinion, the Timline slicer should be extended with the First Week Of Year setting to solve this issue of incorrect week numbers

  • trutz's avatar
    trutz
    Advocate IV

    Hi,

    There is now a newer version of the timeline slicer (2.4.0) that supports switching to ISO weeks ๐ŸŽ‰
    Have a look at the "Week determination standards" setting.

    ISO Week support

    • akaefer's avatar
      akaefer
      Advocate I

      Hi trutz,

       

      thanks for the hint they finally fixed it!

      Now it works like expected.

      However, any hint from them about the new version would have been appreciated. ๐Ÿ˜‰

       

      Best regards

      Armin

      • trutz's avatar
        trutz
        Advocate IV

        The version is correct, but if you import a visual into a report with an older version of the same visual it sometimes doesn't update the visuals correctly. Try to start with a new report first.

  • v-viig's avatar
    v-viig
    Community Champion

    Hi,

     

    Have you tried using Fiscal Year Start and Fiscal Day of Week?

     

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

    • enzo18's avatar
      enzo18
      Frequent Visitor

      Hi,

      Yes, I did. When you set Fiscal Year Start to 31st December you will get 1st week but year will be 2018 instead of 2019. The second problem is that next year will start on 30th December.

      Thank you for your help.

       

      • v-viig's avatar
        v-viig
        Community Champion

        Thanks for checking it.

         

        We'll add such a feature into our backlog to implement it in upcoming sprints.

         

        Ignat Vilesov,

        Software Engineer

         

        Microsoft Power BI Custom Visuals

        [email protected]

  • Wupsje's avatar
    Wupsje
    Regular Visitor

    We've implemented the workaround with setting the fiscal year to the 4th of January.
    That gives us the right weeks for this year, but that messes up our year (it thinks it's 2022 when you need data over 2021).
    Hopefully a fix is in the works

  • WOLF81's avatar
    WOLF81
    Frequent Visitor

    I'm in need of more ISO options as I need to be able to use June 1st as Week 1 as I have issues with my reports. June 1st was a Saturday and my work week starts on Sunday so the weeks are messed up. Is there any means to get more ISO's or a fix for the Timeline Slicer?