Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Year To Date-Month To Date-Week To Date Field

Status
Not open for further replies.

ChiTownDiva

Technical User
Jan 24, 2001
273
US
I should have been more specific. I need to add Year to Date, Month to Date, Week to Date totals to an existing cross-tab report.

Thanks.
 
You may not be able to add these totals.
It depends on how the cross-tab is structured.

What are the fields currently used to make the cross-tab? Please give the name, data type and whether each is a row, column or summarized field. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Hi Ken. Thanks for responding.

There are three fields on the report:

"State" - Text - Row
"City" - Text - Row
"Campaign_ID" - Text - Column

The Summarized field is "Leads_ID":

Type: Decimal
Precision: 18
Decimal Places: Auto

Thanks
 
So I take it that you are counting the leads by location and campaign. And you want YTD/MTD columns after the last campaign column? I don't think you can do this within a true cross-tab. You could create a manual cross-tab with these columns, but that would require manually coding every campaign column as a condition total.

You could have every cell in the cross-tab include total, YTD, MTD and WTD. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
I tried creating a formula and then using it as a summarized field as a "Count", but it didn't work.

If {tblLeadsTest.Date_Received}in YearToDate Then
{tblLeadsTest.LeadID}
Else
0

 
Try:

If {tblLeadsTest.Date_Received}in YearToDate
Then
1
Else
0

Then sum this field in the crosstab

Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top