CR 8.0
SQL
I reviewed previous posts and thought this process would be straightforward. I'm obviously missing something important.
I want to do a cross tab that displays Daily, MTD and YTD activity based on a datetime field (rpt_customer.cust_rec_date)
I want the output to look like the following:
Daily MTD YTD
Client 1
Client 2
etc.
I'm using the following formulas:
Daily
MTD
YTD
I then inserted the fields into the Cross Tab as summary fields. All summary fields are showing up with the same totals so obviously I dont have this correct. Help!
Thanks!
SQL
I reviewed previous posts and thought this process would be straightforward. I'm obviously missing something important.
I want to do a cross tab that displays Daily, MTD and YTD activity based on a datetime field (rpt_customer.cust_rec_date)
I want the output to look like the following:
Daily MTD YTD
Client 1
Client 2
etc.
I'm using the following formulas:
Daily
Code:
if cDate({rpt_customer.cust_rec_date})=CurrentDate then "1" Else "0"
MTD
Code:
If date({rpt_customer.cust_rec_date}) in MonthToDate then "1" Else "0"
YTD
Code:
if date({rpt_customer.cust_rec_date}) in YearToDate then "1" Else "0"
I then inserted the fields into the Cross Tab as summary fields. All summary fields are showing up with the same totals so obviously I dont have this correct. Help!
Thanks!