Displaying Subtotal and Counts from Database

I am making an app to help people donate to their favorite businesses.

I was able to record $ amounts in the database, but am not sure how to display the total dollars donated and total number of donations for each company on the company profile page. I am new to bubble so appreciate any help!

Hi there, @chad.blumenthal… I made an example that will hopefully help you out here.

First, I have a Donations table, and the data in that table looks like this…

Next, I have a simple UI that lets you pick a company and see the number of donations and the sum of the donations…

donation3

The configuration for the field that displays the number of donations looks like this…

… and the configuration for the field that displays the sum of the donations looks like this…

If I have understood your post correctly, I think that should help you get down a good path.

Best…
Mike

Thanks!