Forum Discussion

Chau's avatar
Chau
New Member
9 years ago
Solved

Week starting Wednesday

I need to do weekly reports for the week starting from every Wednesday to Tuesdays the week after. Can anyone help me how to change start of the week to Wednesday (instead of Sunday as default).    ...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Create this as a calculated column wherever you want to do your date filtering (i.e. Date table)

    WEEKNUM = IF(
    	WEEKDAY([Date], 1) < 4),
    	WEEKNUM([Date], 1),
    	WEEKNUM([Date], 1) + 1
    )

     

    This will place Week Numbers next to all of your lines.  Now you can do your filtering based on Weeknumbers.  If you do this as part of a Date Dimension table, you can do a lookup from any date to the WeekNumber