"NA" in enterprise field formulas?

J

Jesse

I'm trying to setup some custom fields (text type for task field)
interrogating fields to see if they have a value or not. One such field,
[actual start] field will display NA in the gantt if the task hasn't started.
I have the formula IIF[actual start]="NA",1,2]. I setup grapical indicators
for 1 = yellow ball and 2 = green ball. In the gantt if [actual start]=NA I
don't get an indicator...while if [actual start] does have a value then I do
get a green ball. I've tried using NA in a Switch formula also but cannot
get it to work. Does the NA work in an enterprise field formula or should I
be using something else?
 
D

Dale Howard [MVP]

Jesse --

Write your formula this way:

IIf([Actual Start]=ProjDateValue("NA"),1,2)

This is the easiest way to test for the "NA" value a date field. Hope this
helps.
 
J

Jesse

Thanks Dale! worked like a charm. I'm playing with some task status type
inticators (late to start, started late, late to finish, finished late, etc.)

Switch([Actual Finish]<>ProjDateValue("NA"),"finished",([Actual
Start]<>ProjDateValue("NA") And [Actual Start]>[Baseline Start]),"started
late",([Actual Start]=ProjDateValue("NA") And [Current Date]>[Start]),"late
to start",[Actual Start]=ProjDateValue("NA"),"not started",[Actual
Start]<>ProjDateValue("NA"),"started")

Thanks for the help
--
Jesse


Dale Howard said:
Jesse --

Write your formula this way:

IIf([Actual Start]=ProjDateValue("NA"),1,2)

This is the easiest way to test for the "NA" value a date field. Hope this
helps.




Jesse said:
I'm trying to setup some custom fields (text type for task field)
interrogating fields to see if they have a value or not. One such field,
[actual start] field will display NA in the gantt if the task hasn't
started.
I have the formula IIF[actual start]="NA",1,2]. I setup grapical
indicators
for 1 = yellow ball and 2 = green ball. In the gantt if [actual start]=NA
I
don't get an indicator...while if [actual start] does have a value then I
do
get a green ball. I've tried using NA in a Switch formula also but cannot
get it to work. Does the NA work in an enterprise field formula or should
I
be using something else?
 
J

JackD

In cases like this I'd use % complete rather than looking for actual
start/actual finish. It would sidestep the whole "NA" thing.
But if this works for you stick with it.

-Jack Dahlgren


Jesse said:
Thanks Dale! worked like a charm. I'm playing with some task status type
inticators (late to start, started late, late to finish, finished late,
etc.)

Switch([Actual Finish]<>ProjDateValue("NA"),"finished",([Actual
Start]<>ProjDateValue("NA") And [Actual Start]>[Baseline Start]),"started
late",([Actual Start]=ProjDateValue("NA") And [Current
Date]>[Start]),"late
to start",[Actual Start]=ProjDateValue("NA"),"not started",[Actual
Start]<>ProjDateValue("NA"),"started")

Thanks for the help
--
Jesse


Dale Howard said:
Jesse --

Write your formula this way:

IIf([Actual Start]=ProjDateValue("NA"),1,2)

This is the easiest way to test for the "NA" value a date field. Hope
this
helps.




Jesse said:
I'm trying to setup some custom fields (text type for task field)
interrogating fields to see if they have a value or not. One such
field,
[actual start] field will display NA in the gantt if the task hasn't
started.
I have the formula IIF[actual start]="NA",1,2]. I setup grapical
indicators
for 1 = yellow ball and 2 = green ball. In the gantt if [actual
start]=NA
I
don't get an indicator...while if [actual start] does have a value then
I
do
get a green ball. I've tried using NA in a Switch formula also but
cannot
get it to work. Does the NA work in an enterprise field formula or
should
I
be using something else?
 
J

Jesse

Thanks for the tip Jack...I like it!
--
Jesse


JackD said:
In cases like this I'd use % complete rather than looking for actual
start/actual finish. It would sidestep the whole "NA" thing.
But if this works for you stick with it.

-Jack Dahlgren


Jesse said:
Thanks Dale! worked like a charm. I'm playing with some task status type
inticators (late to start, started late, late to finish, finished late,
etc.)

Switch([Actual Finish]<>ProjDateValue("NA"),"finished",([Actual
Start]<>ProjDateValue("NA") And [Actual Start]>[Baseline Start]),"started
late",([Actual Start]=ProjDateValue("NA") And [Current
Date]>[Start]),"late
to start",[Actual Start]=ProjDateValue("NA"),"not started",[Actual
Start]<>ProjDateValue("NA"),"started")

Thanks for the help
--
Jesse


Dale Howard said:
Jesse --

Write your formula this way:

IIf([Actual Start]=ProjDateValue("NA"),1,2)

This is the easiest way to test for the "NA" value a date field. Hope
this
helps.




I'm trying to setup some custom fields (text type for task field)
interrogating fields to see if they have a value or not. One such
field,
[actual start] field will display NA in the gantt if the task hasn't
started.
I have the formula IIF[actual start]="NA",1,2]. I setup grapical
indicators
for 1 = yellow ball and 2 = green ball. In the gantt if [actual
start]=NA
I
don't get an indicator...while if [actual start] does have a value then
I
do
get a green ball. I've tried using NA in a Switch formula also but
cannot
get it to work. Does the NA work in an enterprise field formula or
should
I
be using something else?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top