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 6769847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:14:31+00:00 2026-05-26T15:14:31+00:00

I have a data source which is pulling in event attendance information which looks

  • 0

I have a data source which is pulling in event attendance information which looks like the following table.

Note that one booking can contain multiple attendees, causing duplication in the Amount column.

+------------+-----------+---------------+----------+
| Date       | Booking   | Booking Price | Attendee |
+------------+-----------+---------------+----------+
| 01/01/2011 | Booking 1 |       £300.00 | Alice    |
| 01/01/2011 | Booking 1 |       £300.00 | Bob      |
| 01/01/2011 | Booking 1 |       £300.00 | Dave     |
| 01/01/2011 | Booking 2 |       £200.00 | Frank    |
| 01/01/2011 | Booking 2 |       £200.00 | Julie    |
| 02/01/2011 | Booking 3 |       £100.00 | Anne     |
+------------+-----------+---------------+----------+

The Report should end up a bit like this:

+------------+-----------+---------+
| Date       | Booking   | Amount  |
+------------+-----------+---------+
| 01/01/2011 | Booking 1 |    £300 |
|            |    Alice  |         |
|            |    Bob    |         |
|            |    Dave   |         |
+------------+-----------+---------+
|            | Booking 2 |    £200 |
|            |    Frank  |         |
|            |    Julie  |         |
+============+===========+=========+
|   TOTAL FOR 01/01/2011 |    £500 |
|                                  |
|                                  |
+============+===========+=========+
| 02/01/2011 | Booking 3 |    £100 |
|            |     Anne  |         |
+============+===========+=========+
|   TOTAL FOR 02/01/2011 |    £100 |
|                                  |
|                                  |
+============+===========+=========+

(That pretty much exhausts my ascii-art table skills!)

The problem I have is that because the amount is showing for each delegate, the aggregate functions count them all, so date for 01/01/2011 shows as £1300, instead of £500

I don’t need any values next to the attendees, so I could pull it in a separate data set, but I can’t seem to add a table into a tablix cell, so don’t know how that would work.

  • 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-26T15:14:31+00:00Added an answer on May 26, 2026 at 3:14 pm

    The version of SSRS is key here. In SSRS 2008R2, you can now nest aggregate functions:

    So this would now be a valid expression:

    =SUM(FIRST(Fields!BookingPrice.Value , "BookingGroupName") , "DateGroupName")
    

    If you aren’t yet on 2008R2 then you can do some tricks with embedded code to keep a running total: http://beyondrelational.com/blogs/jason/archive/2010/07/03/aggregate-of-an-aggregate-function-in-ssrs.aspx

    The key here is that you add to the total in the embedded code once per group. Then retrieve the total and clear it out at the end of the group.

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

Sidebar

Related Questions

I have one table in my core data source which holds some articles with
I have a data-source connected to a stored proc that will return the one
I have an SQL Data Source which selects all rows of a table. I
I have a custom NSTableView subclass which is bound to a data source (an
I have successfully created my data source, which is a CLR object of the
I have an XML Data Source which contains a list of key/value pairs. I'm
I have a data source which is best modeled with a dictionary (it is
I have a stream of data coming in from an external source which I
I have a radio button list which I bind with the data source with
I have an SSIS package that exports data from a table on a SQL

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.