Averaging out fees without creating customized queries for each instance

Voltron

Defender of the universe
Local time
Yesterday, 18:04
Joined
Jul 9, 2009
Messages
77
Calculated field issue dealing with other queries

Here's the deal. In my continuing quest to replicate my company's fee structure in an Access database (to create a query to spit out the information they need in the format they need it in) I have run across numerous exceptions which have drastically complicated things. I have done my best to get all of the calculations for specific fees/exceptions in the same query, but I fear I can't do this with the following problem.

There are a could of clients that have their fees split between 2 separate plans. That's all fine and dandy except for the fact that they are based off of percentages of the total assets in the plans. More specifically:

(Fee*4)*(Total Plan Assets of first plan/(Total Plan Assets of first plan+Total Plan Assets of the second plan))

The 4 represents the number of quarters in the year. The fee is based off of a quarterly amount. The Fee is a hard-coded number that will be taken from a table. Total Plan Assets is a calculated field in another query.

My question is this...Is there anyway to get this to work for all of the separate instances of this throughout our client base or am I going to have to create queries to handle this for each and every client? I know exactly how to do the latter, but really want to avoid it because it is tedious and not easy for others to understand if they aren't the ones working with the database on a daily basis.

Any advice will be greatly appreciated.
 
Last edited:
Your case is similar to what I advised hawg1 with his problem. You recently commented on that thread and I posted after yours. Use the ideas from there using a subquery to calculate the Total Plan of Assets of first plan and total for second plan for each client.

You would end up with a record per client with FEE, Total for Plan 1, Total for Plan 2.
 
Thanks you for the advice. I actually took a look at the links you had posted already and was trying to think of how to use them. This seems to be the way to go.

Thanks again for the help.
 
No problemo. Subqueries might take you a while to string together but once you get the hang of it it's 'all systems go'.

Good luck!
 

Users who are viewing this thread

Back
Top Bottom