Forum Discussion

noliverte's avatar
noliverte
Helper III
5 years ago
Solved

Weekyear ISO comparison

Hello,   I have 1  table  with details of the sessions each days (2015-->2020) Named Freq-web-all   I have a calendar calculated field Named Calendrier I linked these 2 tables in the...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi noliverte ,

     

    You can create a yearweek number like this

    calendar =
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2015, 1, 1 ), TODAY () ),
        "yearweek",
            YEAR ( [Date] ) & "-"
                & WEEKNUM ( [Date] ),
        "sort",
            YEAR ( [Date] ) * 100
                + WEEKNUM ( [Date] )
    )

     

    For filtering the value you want, you could create a relationship between the calendar table and the main table.

     

    The sort column is created to sort the yearweek colulmn.

     

    After the above steps are completed, you can create a view to filter.

     

    You can check more details from here.

     

     

    Best Regards,

    Stephen Tao

     

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