Hello,
My questions
1- is there a function or formula to determine the week number of a given month (see output example below)
2- is there a function that shows the number of workdays in a given week (see output example below)
My final report is to group them by week number
Input
Trans_date Prem_Amt
Sept 02, 2003 10.00
Sept 03, 2003 10.00
Sept 03, 2003 15.00
Sept 05, 2003 10.00
Sept 08, 2003 10.00
Sept 12, 2003 15.00
Sept 15, 2003 20.00
Sept 22, 2003 10.00
Sept 23, 2003 10.00
Sept 24, 2003 10.00
Output
Trans Week Number of Total Premium
Period working days Amount
Sept 2003 Week 1 4 days $45.00
Sept 2003 Week 2 5 days $25.00
Sept 2003 Week 3 5 days $20.00
Sept 2003 Week 4 5 days $30.00
Sept 2003 Week 5 2 days $ 0.00
For output line of Week 1, the number of working days is 4 because Sept 1, 2003 was a holiday.
Thank you in advance,
Antonx
My questions
1- is there a function or formula to determine the week number of a given month (see output example below)
2- is there a function that shows the number of workdays in a given week (see output example below)
My final report is to group them by week number
Input
Trans_date Prem_Amt
Sept 02, 2003 10.00
Sept 03, 2003 10.00
Sept 03, 2003 15.00
Sept 05, 2003 10.00
Sept 08, 2003 10.00
Sept 12, 2003 15.00
Sept 15, 2003 20.00
Sept 22, 2003 10.00
Sept 23, 2003 10.00
Sept 24, 2003 10.00
Output
Trans Week Number of Total Premium
Period working days Amount
Sept 2003 Week 1 4 days $45.00
Sept 2003 Week 2 5 days $25.00
Sept 2003 Week 3 5 days $20.00
Sept 2003 Week 4 5 days $30.00
Sept 2003 Week 5 2 days $ 0.00
For output line of Week 1, the number of working days is 4 because Sept 1, 2003 was a holiday.
Thank you in advance,
Antonx