Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6866901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:14:32+00:00 2026-05-27T03:14:32+00:00

tl;dr: is it possible to have grouping levels within a subreport which gets its

  • 0

tl;dr: is it possible to have grouping levels within a subreport which gets its data entirely from the main report? I need to produce a single report which takes a single set of data and displays four or more different summarizations/calculations on the data.

=================================================================================

It would be easy enough to make a separate stored procedure call in each subreport. But since a lot of the data will be common to all of the subreports, I’d like to avoid the performance cost of getting the same data from SQL Server repeatedly.

I’d like to get all the raw data once, from a single stored procedure, and link that data to the various subreports within the single .RPT file. So far it seems that I cannot use the Group Expert in a subreport that does not call a stored procedure — there are no Report Fields displayed to select for grouping.

The subreports could be described as cost summaries, calculated as follows: A summary for all months, A breakdown of just the current month, calculated averages per person/month, and multiple cost breakdowns by plan for the current month.

For the first subreport, I can get the desired data as parameters, by linking desired fields and parameters from the main report. I would need to group this to group this data by the month of a particular date column, with one row per month and a grand total at the end. But if I click on the Group Expert in that subreport, there are no Report Fields available for me to group by.

Since all of the calculations involve a single set of data, I’d like to just get that set from a single stored proc call, and have Crystal perform the various calculations.

Can this be done in Crystal Reports XI, with or without subreports, without having multiple calls to the database that return the same data more than once?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:14:32+00:00Added an answer on May 27, 2026 at 3:14 am

    Ultimately I gave up on the original request. Here what I implemented as Plan B instead.

    I created a new table in SQL Server to hold all of the detail-level data needed for this report. The main stored procedure associated with the report 1) deletes old data from the table based on the given parameters, 2) inserts all of the necessary data, and 3) returns just the data needed for the first and outermost summary report.

    I have Crystal using Group Headers and Footers, combined with summaries and running totals, to calculate the totals I want two different ways. Then I’ve added two subreports for the more complex grouping, summarizing, and filtering I want to do.

    Each of those subreports calls its own stored procedure, which queries the new table I’ve created for just the necessary data columns for that particular subreport. Again, I use Group Headers and Footers and suppress the Detail section to get the summaries by group that I want in each of the subreports.

    It’s not as elegant a solution as I originally had in mind, but ultimately it meets our needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have a report which has grouping on the underlying data
I have this situation where I need to get some data from a webpage
Is it possible to have a MySQLi prepared statement within the fetch() call of
I have multiple linq queries that retrieve the same data just at different grouping
I have a grid backed by a grouping store in which I have a
Possible Duplicate: Perl: How do you insert numbers after grouping variable? I have the
Is it possible to group rows with columns and have the remaining data merged
Postgresql version 9.0 I need an idea for grouping postgresql users. i have 150+
I'm getting data from the data layer that I need to transform in the
Is it possible have two projects with the same name in flex builder? Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.