Solo712
Registered User.
- Local time
- Today, 18:00
- Joined
- Oct 19, 2012
- Messages
- 838
Sorry, let's just go with verifying your formula for other months.
Have you downloaded the database? I attached it making sure it has what I'm talking about so it makes sense from what I'm stating here to the actual queries and formulas in the db.
For purpose of testing
There is one table, as you have identified, it is "02_Collegiate_Details".
The queries to look at has been specified in the last post to you:
"ByFiscalYear" and "Query1"
The Query1, with the formula you have provided, should result in the same totals as shown in the query ByFiscalYear. And it does.
This month's total, using your formula in Query1, does reconcile to the total in the query ByFiscalYear in columns Apr, May, and Jun. So this is good!
So in trying to verify that your formula works in other months I modified it toand this still does reconcile to the column Mar in the query ByFiscalYear. This is still good!Code:<>MonthDate())-1 or 5 or 6
However, in testing one more month prior, so I change the formula toBUT it does NOT reconcile to the column Feb in the query ByFiscalYear.Code:<>MonthDate())-2 or 5 or 6
As shown in the prior post
with theNot sure why?Code:<>Month(Date())-2 or 5 or 6
The difference is in that your ByFiscalYear formulas sweep the year going forward, where the Query1 formula includes the totals of months that are ahead, so the Month(Date())-2 case includes the April totals since they are not excluded by the formula. They are 5,2,10,5 in the four years queried.
Best,
Jiri