Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Date Issue


Recommended Posts

I have a Date field with dates ranging from 1/1/2004 to present, I have a calc field - Q1_04 unstored, = Case(Date ≥ "1/1/2005" and Date ≤ "3/31/2005";"1").


The results are weird, a 1 is in all records with


dates from 1/1/2005 - 3/3/2005 have a 1 in Q1_04

dates from 3/4/2005 - 3/9/2005 have nothing in Q1_04

dates from 3/10/2005 -3/30/2005 have a 1 in Q1_04

as well as dates 10/4/2005 - 12/xx/2005 and some date from 2006


Any thoughts?

Link to comment
Share on other sites

This "1/1/2005" is a text string, not a date. Use the Date() function to specify a particular date.


BTW, since quarter is a function of the month of the date and nothing else, you could use something like:

Ceiling ( Month ( date ) / 3 )

to calculate the quarter dynamically for any date, regardless of the year.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Terms of Use