If the May 2012 memberships ends in 2015, as shown in the table, those would ONLY show in the 1st column Jul NOT in the May and Jun column they are currently showing.
See 1 under May and Jun columns: Since they end in 2015 they should be counted with the Jul column and NOT show in the May and Jun column of the fiscal year.
Fiscal year = Jul - Jun
Where the payments for memberships are collected starting in May and Jun for the future Season and these payments need to be counted with the purchases through Jul as the Jul total (May-Jul). These same purchases should NOT be shown again in the last two months of the fiscal year in the columns May and Jun since the actual payments for these months (are for seasons ending later than 2015).
Season |
YearPaid |
Jul |
Aug |
Sep |
Oct |
Nov |
Dec |
Jan |
Feb |
Mar |
Apr |
May
|
Jun |
PaymentDate |
EndDate |
MembershipNumber |
2015 |
2012 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
5/15/2012 |
6/30/2015 |
1144627 |
2015 |
2012 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
5/16/2012 |
6/30/2015 |
1005705 |
2015 |
2012 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
5/16/2012 |
6/30/2015 |
1099838 |
2015 |
2012 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
6/28/2012 |
6/30/2015 |
1131963 |
2015 |
2012 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1
|
1 |
7/19/2012 |
6/30/2015 |
1391914 |
Please see: Collegiates.zip
Example:
Code:
Apr: IIf(Sum(IIf(DatePart("m",[PaymentDate])>=5 And 7 Or DatePart("m",[PaymentDate])<=4,1,0))=0,Null,Sum(IIf(DatePart("m",[PaymentDate])>=5 And 7 Or DatePart("m",[PaymentDate])<=4,1,0)))
What edit in this formula to handle if 5 and 6 have the SAME Season as shown to NOT include them?
Or another formula on top of this one?
The 5 records with May-2012 AND May-2013 all have EndDates of Jun-2015 (Season ending 2015), these should only show in the 1st column of the report in the month of Jul BUT NOT again in the last months of the fiscal year in Apr, May, Jun columns.
So, how do I edit the formula or add a formula to say something like exclude May and Jun IF the Season ending year is the SAME as the ending year it's currently reporting on? Seems like that will work but not sure how to write that?
Let's say one of these bolded May payment end has a Season greater than 2015, THEN that should NOT be included into the Jul month and should show in the May column at the end of the monthly cumulative report.
MemberType |
Season |
MembershipNumber |
PaymentDate |
EndDate |
Collegiate
|
2015 |
1144627 |
15-May-12 |
30-Jun-15 |
Collegiate |
2015 |
1005705 |
16-May-12 |
30-Jun-15 |
Collegiate |
2015 |
1099838 |
16-May-12 |
30-Jun-15 |
Collegiate |
2015 |
6436112 |
07-May-13 |
30-Jun-15 |
Collegiate |
2015 |
1252333 |
28-May-13 |
30-Jun-15 |
Collegiate |
2016 |
6302859 |
01-May-13 |
30-Jun-16 |
Collegiate |
2016 |
8919316 |
01-May-13 |
30-Jun-16 |
Collegiate |
2017 |
1060155 |
02-May-14 |
30-Jun-17 |
Collegiate |
2017 |
8746552 |
03-May-14 |
30-Jun-17 |
Collegiate |
2017 |
1068751 |
07-May-14 |
30-Jun-17 |
Collegiate |
2017 |
1276092 |
09-May-14 |
30-Jun-17 |
Collegiate |
2017 |
6512612 |
15-May-14 |
30-Jun-17 |
Collegiate |
2017 |
1530334 |
25-May-14 |
30-Jun-17 |
In other words ...
How can this be edited
Code:
IIf(Sum(IIf(DatePart("m",[PaymentDate])>=5 And 7 Or DatePart("m",[PaymentDate])<=4,1,0))=0,Null,Sum(IIf(DatePart("m",[PaymentDate])>=5 And 7 Or DatePart("m",[PaymentDate])<=4,1,0)))
to then say something like WHEN the Season or EndDate is the same THEN exclude it in this formula?