Jump to content
  • 0

Group by and summarize datapage


nrlottig

Question

I've generated a data view that has several columns and tracks donations to charity by individuals (multiple in a given time period). I would like to generate a summary table that includes the donor information (name, address, total donation amount) which we can export.

Fields (shortened list)

  • ID (auto generated, unique to each individual, does not appear to be allowed to be a grouping variable in data pages)
  • Name
  • Address
  • DonationDate
  • Donation

Can anyone help me with how to create this table. I currently use the free version so I don't have access to pivot tables. From what I've read, SUM is not available as a calculated field when creating a datapage.

Thanks,

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @nrlottig,

You may use totals and Aggregation to sum the total of the field.

1. Create two tables;
     - One for the Donator information
     - Second is for the Donation
This will allow you to stamp the donator information multiple times.

2. Create a View to combine the two table
I suggest to connect the tables first on the table relationship. On the configuration of the view the connection between the two will be automatically selected to inner.

image.png.4e959e9718c6b51f39a7f779da3446ed.png

3. Use tabular report DataPage:
   -  Select the fields; Name, Donation Date, and Donation.

4. Set the following configuration;
    -  For the name field Enable data grouping by this field.
    - Add the Totals and Aggregation and sum the Donation field

You may adjust the configuration based on your preference.

Here is the expected output:
image.thumb.png.5df587b00c233d3045d5ce865c680c4e.png

Hope this helps!

Link to comment
Share on other sites

  • 0
  • 0
11 hours ago, telly said:

Hi @nrlottig,

You may use totals and Aggregation to sum the total of the field.

1. Create two tables;
     - One for the Donator information
     - Second is for the Donation
This will allow you to stamp the donator information multiple times.

2. Create a View to combine the two table
I suggest to connect the tables first on the table relationship. On the configuration of the view the connection between the two will be automatically selected to inner.

image.png.4e959e9718c6b51f39a7f779da3446ed.png

3. Use tabular report DataPage:
   -  Select the fields; Name, Donation Date, and Donation.

4. Set the following configuration;
    -  For the name field Enable data grouping by this field.
    - Add the Totals and Aggregation and sum the Donation field

You may adjust the configuration based on your preference.

Here is the expected output:
image.thumb.png.5df587b00c233d3045d5ce865c680c4e.png

Hope this helps!

Thanks so much! I basically had everything configured identically as you specified. I've got some experience with MS Access. My issue with this approach and current road block is that Name isn't always unique. The combination of name and address should virtually always be unique. Thus, I was was trying to use ID as a grouping variable but I haven't figured out how todo that. I know I could export the data and do the aggregation in R but it sure would be nice todo it here. In a perfect world, I would be able to create a calculated field based on the SUM(DONATION) and GROUPBY(ID). I don't have the SQL code exact for that but it doesn't look like SUM is available as a calculated value.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...