Create a field that totals up dollar amounts from invoices that are assigned to a specific agency

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
I would like to create a field that totals up dollar amounts from invoices that are assigned to a specific agency. For example, I have a table that's for invoices. Each agency may have around 30 invoices. I can easily get the total from the default report but I would like it to be a field that I can pull into an email. 
Photo of Stephony (DBH)

Stephony (DBH)

  • 586 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,698 Points 20k badge 2x thumb
If you want the total on the 'Agency' record you can create a summary field to pull the total from all the individual 'invoices'.  You can set different criteria for only summarizing data that is 'outstanding' or any other defining fields you have on the invoices.



If you want that total to be on the invoices related to the 'agency' you can then pass that lookup, back down to the 'invoices'.

You may want to make defined summaries, because the situations may vary depending on the 'status' of those invoices.

Then wherever you make your email, you can have those specific fields. 
Photo of Ann Swelgin

Ann Swelgin

  • 120 Points 100 badge 2x thumb
I have a similar question, I have an expenses table our field guys enter their expenses into daily. I need the "Food" dollar amounts not to exceed $40 a day and "Parking" not to exceed $10 a day for reimbursement purposes.

I don't want to use form rules because I think people will be adding these in grid edit most of the time. 

Can I create 2 fields one to total any expense amounts in the food category for one day and then another field called expense payout total to be either the daily expense total or $40 whichever is less.