I keep getting the following error when I try to add a condition to my count function
The summary/Running Total field could not be created
A Group Condition is not allowed here
current count works fine
count ({LOCATION.DESCRIPTION},{@within window new})
example of new count that won't work
count ({LOCATION.DESCRIPTION},{@within window new}, "No Data"
where {LOCATION.DEESCRIPTION} is a String, and @within window new =
if IsNull ({@act_hr:mn}) then "No Data" else (if IsNull ({@TW1open}) then "No TW" else (if {@act_hr:mn} < {@TW1open} then "Early" else (if (({@act_hr:mn} > {@TW1open}) and ({@act_hr:mn} < {@TW1 close})) then " Ontime" else (if IsNull ({@TW2 open}) then "Late" else ((if (({@act_hr:mn} > {@TW2 open}) and ({@act_hr:mn} < {@TW2 close})) then " Ontime" else ((if (({@act_hr:mn} > {@TW1 close}) and ({@act_hr:mn} < {@TW2 open})) then "Between TW" else "Unknown")))))))
it's probably something really dumb, but help me out, will ya?
)
The summary/Running Total field could not be created
A Group Condition is not allowed here
current count works fine
count ({LOCATION.DESCRIPTION},{@within window new})
example of new count that won't work
count ({LOCATION.DESCRIPTION},{@within window new}, "No Data"
where {LOCATION.DEESCRIPTION} is a String, and @within window new =
if IsNull ({@act_hr:mn}) then "No Data" else (if IsNull ({@TW1open}) then "No TW" else (if {@act_hr:mn} < {@TW1open} then "Early" else (if (({@act_hr:mn} > {@TW1open}) and ({@act_hr:mn} < {@TW1 close})) then " Ontime" else (if IsNull ({@TW2 open}) then "Late" else ((if (({@act_hr:mn} > {@TW2 open}) and ({@act_hr:mn} < {@TW2 close})) then " Ontime" else ((if (({@act_hr:mn} > {@TW1 close}) and ({@act_hr:mn} < {@TW2 open})) then "Between TW" else "Unknown")))))))
it's probably something really dumb, but help me out, will ya?
)