Sorry for being picky on this but the devil is in the details and the logic is not making any sense to me.
From your description of
I want to run the total of student names with BILLCODE,
if {SBNewRet.Bill code} in ["FALL11","FY2012"] then "2011 Fall" else if {SBNewRet.Bill code}in ["SPR12","FY2012"] then "2012 Spring"
to your sample data of
Full name Bill code
StudentA FY2012
FALL11
StudentB Fall11
StudentC Spr12
I interpret this to mean that only student A would be counted as neither student b nor c had the FY2012 value.
Just guessing here but I think maybe you want a distinctcount of students for Fall11 and SPR12 and if they happen to have the FY2012 that means
coun them in both.
IF this is what you need try this.
Make one formual field called "NULL"
do not put any anything in it and save it.
Create another formula field called "Fall11" as
if {SBNewRet.Bill code} in ["Fall11","FY2012"] then {table.studentID} else {@NULL}
Create another formual field called "SPR12" as
if {SBNewRet.Bill code} in ["SPR12","FY2012"] then {table.studentID} else {@NULL}
Now you can do a distinctcount of @FALL11 to see how many students were in this group.
Now you can do a distinctcount of @SPR12 to see how many students were in this group.
Does this do what you need?
Edited by DBlank - 16 Feb 2012 at 8:04am