90 likes | 101 Views
Carrie Duran, Sr. Systems Analyst at UTS/Administrative Information Systems, presents a crosstab report grouping data by weeks. The report filters transactions that occurred on Thursdays and calculates the transactions for a week starting from Thursday. The report covers the period from 01-FEB-2011 to 28-FEB-2011. For any questions or further information, please contact carrie.duran@du.edu.
E N D
Grouping by Weeksin a Crosstab Carrie Duran Sr. Systems Analyst UTS/Administrative Information Systems
WHEN abs(_days_between([TRANSACTION_DATE],next_day([TRANSACTION_DATE],'THURSDAY'))) = 7 THEN ([TRANSACTION_DATE])
WHEN abs(_days_between([TRANSACTION_DATE],next_day([TRANSACTION_DATE],'THURSDAY'))) = 6 AND _days_to_end_of_month([TRANSACTION_DATE]) > 6THEN (_add_days([TRANSACTION_DATE],6))