Solved

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

Posted on 2014-01-20
5
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

726 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