Results 1 to 3 of 3
  1. #1
    mpreston14 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    41

    Calculating a Bonus based on "effective date"

    I have a database created to rank soccer referees. Each match they officiate they get a certain number of points that are calculated by various criteria. In addition to the actual match points, if they pass a fitness test they earn a certain bonus% on their points. I have worked that into the calculation just fine for the refs that did the test at the beginning of the season, but the summer test just happened and I cannot think of a way to apply it only on matches after the test was taken. Any ideas?

    Here are the calculations I am using now:

    1) Raw data imported and filtered for matches/missmatches:



    Points: [Match].[MatchMultiplier]*[League].[LeagueMultiplier]*[Position].[PositionMultiplier]*[Finals].[Bonus]

    2) To rank the referees by total points including the bonus I then use:

    Total Points: Sum([Officiated_Matches_T].[Points]*[Referee_T].[FitTestBonus])

    Now, I know I shouldn't really store the calculated points in the database, but as this is the first time we are doing something like this it was easier to play with and validate. Eventually I would like it to be calculated only at the query/report level.

    So if a referee earns 50 points for a game last week and they did the fit test this weekend and earn a 10% bonus, and next week the do the same match they get 55 points. Their total would then be 105. My current way of doing this would give them 110 points for those two matches.

    I appreciated your help!

    Mike

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Will ref have only one fitness test? Somehow get the test date into query or on form/report by query join or DMax so the date is available for use in expression:

    IIf([GameDate]>[TestDate], ...

    I am not sure about your calculation, don't seem to be adding the bonus amount.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mpreston14 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    41
    Thank you, I will try the If statement with the dates!

    I run two separate queries which is how I get the bonus applied. It does work, but its not a clean as I would like.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 03-05-2013, 01:20 PM
  2. Replies: 2
    Last Post: 11-26-2012, 11:12 PM
  3. Replies: 2
    Last Post: 09-29-2012, 11:22 PM
  4. Replies: 4
    Last Post: 03-14-2012, 09:05 AM
  5. Replies: 0
    Last Post: 09-25-2008, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums