Feb 1, 2005 #1 jen9814 Technical User Nov 5, 2002 35 US Is there a way to get a month-to-date totals and and a year-to-date totals as a column in a cross tab? Example: current mtd ytd variable x 5 10 variable y 2 8 total 7 18 Thanks.
Is there a way to get a month-to-date totals and and a year-to-date totals as a column in a cross tab? Example: current mtd ytd variable x 5 10 variable y 2 8 total 7 18 Thanks.
Feb 1, 2005 #2 lbass Technical User Feb 9, 2002 32,816 US You could easily do this with a manual crosstab by creating two formulas to be placed in the details section: //{@MTD}: if {table.date} in MonthToDate then 1 //or then {table.amt} //{@YTD}: if {table.date} in YearToDate then 1 //or then {table.amt} Insert a group (that results in X or Y), and then right click on each formula and insert a summary (sum, not count). Drag the group name to the group footer, and then suppress the details section. -LB Upvote 0 Downvote
You could easily do this with a manual crosstab by creating two formulas to be placed in the details section: //{@MTD}: if {table.date} in MonthToDate then 1 //or then {table.amt} //{@YTD}: if {table.date} in YearToDate then 1 //or then {table.amt} Insert a group (that results in X or Y), and then right click on each formula and insert a summary (sum, not count). Drag the group name to the group footer, and then suppress the details section. -LB