I am trying to create a chart (working on data part right now) that counts the number of instances certain conditions exist. For example, if contract a has been advertised but not awarded then advertised should get a count of 1; if it has been advertised and awarded then awarded gets a count of 1 (not advertised).
I thought an if statement would work if I created a formula for each variable but I am having problems.
In the above code, the return value should be a 1 because the task start and end dates have been filled in for that task_name. If I check on the dates alone, it works but when I add back in the task_name, it goes to 0. I did try adding trim in front of task_name but that didn't work either.
Ultimately, I need 4 columns Awarded, Contracts in Ad/Award, Advertisement in 2012 and Advertisement in 2013.
Also, since I need to make a bar graph, should I proceed with this theory or is there a better way to create the graph?
Thanks
Lhuffst
I thought an if statement would work if I created a formula for each variable but I am having problems.
Code:
IF
{Command.TASK_NAME} = "Execute Notice of Award (NOA)"
AND
(NOT iSnULL({Command.TASKACTSTART}) AND NOT ISNULL({Command.TASKACTEND})) then 1 else 0
In the above code, the return value should be a 1 because the task start and end dates have been filled in for that task_name. If I check on the dates alone, it works but when I add back in the task_name, it goes to 0. I did try adding trim in front of task_name but that didn't work either.
Ultimately, I need 4 columns Awarded, Contracts in Ad/Award, Advertisement in 2012 and Advertisement in 2013.
Also, since I need to make a bar graph, should I proceed with this theory or is there a better way to create the graph?
Thanks
Lhuffst