You need to replace sysdate with your database date field.
The formula posted will return a number for you to group on.
If you want a date, then you can use this:
if dayofweek({table.date}) = 1
then {table.date} - 6
else {table.date} - dayofweek({table.date}) + 2
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.