RobNauticus
MIS
Hello everybody,
I am attempting to create several formulas that summarize parts of my report (avg). I have one formula that seems to be working averaging over all of group1. The second formula does not seem to work that is the same formula with an additional criteria limiting the average to only those records that are marked as true in the database.
I am using CR10 and MS Access 2003
Here is the formula that I think works:
This one takes all the records in a 30 day period and averages them per group1.
This formula does the same calculation but it should only average records that are marked as "true" within the 30 day period.
I have checked all of my relationships and fields that are associated and everything looks fine.
If anyone has suggestions I would love to hear them!
Thanks for looking,
Rob
I am attempting to create several formulas that summarize parts of my report (avg). I have one formula that seems to be working averaging over all of group1. The second formula does not seem to work that is the same formula with an additional criteria limiting the average to only those records that are marked as true in the database.
I am using CR10 and MS Access 2003
Here is the formula that I think works:
Code:
if {Weekly_Data.date_WeekOf} in [currentdate to currentdate - 30]
then Average ({Weekly_Data.int_cur_Sales}, {Market.int_MarketID})
Code:
if {Weekly_Data.date_WeekOf} in [currentdate to currentdate - 30] and {Company_Division.yn_Lennar} = true
then Average ({Weekly_Data.int_cur_Sales}, {Market.int_MarketID})
I have checked all of my relationships and fields that are associated and everything looks fine.
If anyone has suggestions I would love to hear them!
Thanks for looking,
Rob