Activities Counted in the Wrong Week
Summary
Counts showing in previous week rangeContent
We have a report where we are counting by week (Sat-Fri). In validating the report, it looks like activities that are performed on Saturday are not falling in the correct week.
This is the formula that I'm using to display the date range that the activities fall within.
EVALUATE('to_char(%1,%2)' as char,TIMESTAMPADD(SQL_TSI_DAY, DAYOFWEEK("Submission CSW Status - Historical"."Historical Status Event Date") *-1,"Submission CSW Status - Historical"."Historical Status Event Date"),'MM/DD/YYYY') || ' - ' || EVALUATE('to_char(%1,%2)' as char, TIMESTAMPADD(SQL_TSI_DAY, 6-DAYOFWEEK("Submission CSW Status - Historical"."Historical Status Event Date"),"Submission CSW Status - Historical"."Historical Status Event Date") ,'MM/DD/YYYY')
Tagged:
1