I have to create a query that makes a based on a series of calculations.
Monthly I am given a figure relating to two amount of monies
Total_billed and Billed_to_Date.
I have a number of files that fall into six categories, these categories are allocated by the system when the file information is entered.
Costs to Date calc =
1. Total billed on cat 1 divided by count of cat1 + cat2 + cat3
2. (Total billed on cat 1 divided by count of cat1 + cat2 + cat3) plus (Billed_to_Date divided by count of cat2 + cat4)
3 As 2 above but .... Plus(Billed_to_Date divided by count of cat3 + cat5)
4 Billed_to_Date on cat4 divided by count of cat2 + cat4
5 Billed_to_Date on cat5 divided by count of cat3 + cat5
I would be very grateful if anyone could point me in the direction of doing this in an elegant way. My current effort is extremely messy and difficult to manage.
Many thanks for your time
Brian