Solved

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

Posted on 2014-01-20
5
298 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
Comment Utility
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
Comment Utility
Thanks
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 255 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Yes, that is in general true.

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

mlmcc
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how the fundamental information of how to create a table.

762 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

6 Experts available now in Live!

Get 1:1 Help Now