Results 1 to 4 of 4
  1. #1
    GoBlue is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    3

    Averaging in Report footer If condition is met


    I have a list of values in a report I want to average at the end, but I only want to include the records value in the average if a condition (named [split]) is no. Can that be done? I have the formula =(IIF[split]=false, Avg([x]/[y]). But that seems to be doing the same as =Avg([x]/[y])

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    assuming 'split is no' means it is Not Checked; try

    =(IIF([split]<>-1,0, Avg([x]/[y]))

    not 100% sure on this though......

  3. #3
    GoBlue is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    3
    Quote Originally Posted by NTC View Post
    assuming 'split is no' means it is Not Checked; try

    =(IIF([split]<>-1,0, Avg([x]/[y]))

    not 100% sure on this though......

    I tried it, but it did not work. It evaluated the data as 0. Any other thoughts?

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    am not real certain on Avg([x]/[y])

    your initial post implies that it works...and you only needed to apply it to sub set of records....are you sure about that method?

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

Similar Threads

  1. Replies: 2
    Last Post: 12-21-2013, 02:09 PM
  2. IIf Function in Report Footer
    By Ron H. in forum Access
    Replies: 3
    Last Post: 12-21-2013, 04:05 AM
  3. Averaging one column in a report
    By FranCorona in forum Reports
    Replies: 7
    Last Post: 08-02-2013, 03:42 PM
  4. Error in Footer Sum on Report
    By eww in forum Reports
    Replies: 2
    Last Post: 08-26-2010, 01:54 PM
  5. Problems with SUM in Report Footer
    By bonetakc in forum Forms
    Replies: 1
    Last Post: 07-30-2009, 04:53 AM

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