Using formula to calc date as part of filter

W

wendyB

Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy
 
B

Brian K - Project MVP

wendyB said:
Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date] +30

Then create the filter to filter against Date1 instead of current date
+ 30
 
W

wendyB

Hi Brian

Thanks for your response.

Does this mean the filter syntax won't take formulas?

Regards
Wendy

Brian K - Project MVP said:
wendyB said:
Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date] +30

Then create the filter to filter against Date1 instead of current date
+ 30
 
J

Jan De Messemaeker

Yes.

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
http://users.online.be/prom-ade/
+32-495-300 620
wendyB said:
Hi Brian

Thanks for your response.

Does this mean the filter syntax won't take formulas?

Regards
Wendy

Brian K - Project MVP said:
wendyB said:
Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date] +30

Then create the filter to filter against Date1 instead of current date
+ 30
 
B

Brian K - Project MVP

wendyB said:
Hi Brian

Thanks for your response.

Does this mean the filter syntax won't take formulas?

Regards
Wendy

Brian K - Project MVP said:
wendyB said:
Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date]
+30

Then create the filter to filter against Date1 instead of current
date + 30

Not in the "Value(s)" field, not that I am aware of...
 
W

wendyB

Hi Brian
I used "[current date] + 30" in the formula in a Custom Date1 Field , but
this is giving me a syntax error.

What am I doing wrong?

Regards
Wendy


Brian K - Project MVP said:
wendyB said:
Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date] +30

Then create the filter to filter against Date1 instead of current date
+ 30
 
B

Brian K - Project MVP

wendyB said:
Hi Brian
I used "[current date] + 30" in the formula in a Custom Date1 Field ,
but this is giving me a syntax error.

What am I doing wrong?

Regards
Wendy


Brian K - Project MVP said:
wendyB said:
Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date]
+30

Then create the filter to filter against Date1 instead of current
date + 30

Idont know what to say.
[Current Date]+30
Works fine for me.
 
W

wendyB

Hi Brian

Now I'm really curious.

I've managed to get the date field to work using [current date] and this was
what I was doing before:

1. Insert a Date1 field
2. Customize fields
3. Click on "Formula" under Custom Attributes in the Customize Fields dialog
4. Now()-90

Do you know that "now()" works any differently from "[Current Date]"?

Thanks
Wendy

Brian K - Project MVP said:
wendyB said:
Hi Brian
I used "[current date] + 30" in the formula in a Custom Date1 Field ,
but this is giving me a syntax error.

What am I doing wrong?

Regards
Wendy


Brian K - Project MVP said:
wendyB wrote:

Hi,

How do you use a formula to calc dates as part of a filter? e.g.
Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30 days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current Date]
+30

Then create the filter to filter against Date1 instead of current
date + 30

Idont know what to say.
[Current Date]+30
Works fine for me.
 
B

Brian K - Project MVP

wendyB said:
Hi Brian

Now I'm really curious.

I've managed to get the date field to work using [current date] and
this was what I was doing before:

1. Insert a Date1 field
2. Customize fields
3. Click on "Formula" under Custom Attributes in the Customize Fields
dialog 4. Now()-90

Do you know that "now()" works any differently from "[Current Date]"?

Thanks
Wendy

Brian K - Project MVP said:
wendyB said:
Hi Brian
I used "[current date] + 30" in the formula in a Custom Date1
Field , but this is giving me a syntax error.

What am I doing wrong?

Regards
Wendy


:

wendyB wrote:

Hi,

How do you use a formula to calc dates as part of a filter?
e.g. Filter for tasks...
"Finish" greater than Current Date + 30days.
to filter out tasks that are finishing within the next 30
days.

Thanks
Wendy

Customize a field like Date1 and set the formula to: [Current
Date] +30

Then create the filter to filter against Date1 instead of
current date + 30

Idont know what to say.
[Current Date]+30
Works fine for me.

Now() includes the time also. That might have been the trouble. Not
sure. Im glad it is working now though! :)
 

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