Solved

Crosstabs versus subreports... which are better in a group footer

Posted on 2014-01-20
5
299 Views
Last Modified: 2014-01-20
I need to do some summarizing in my crystal reports group footer.   I know that you shouldn't use "subreports"  in the detail or  group footer because to  the overhead, but are crosstabs any better?  Would a crosstab be more efficent and less overhead in this situation?
0
Comment
Question by:Mike Johnson
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:vasto
ID: 39794727
Subreports should not be used in the details section because it is a separate report with a separate call to the database. Pacing it in the details section means that a new report will be started for each record in the details section of the main report. Crosstab is a calculation inside the same report and even if there will be some additional processing , it should be not so bad as the subreport. I would try the crosstab.
0
 

Author Comment

by:Mike Johnson
ID: 39794790
Thanks
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 255 total points
ID: 39794953
I agree, a crosstab should be better.  It should work so long as the summarizing you are doing is over the full recordset for the group.

mlmcc
0
 

Author Comment

by:Mike Johnson
ID: 39795075
Just curious... I'm assuming the "crossTabs" use the main report query, as were with the subreports have their own query.  Thus the increaased I/O with the subreports?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39795382
Yes, that is in general true.

Sometimes the subreport effect is negligible other times it is very noticeable.

mlmcc
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now