How to fix this formula?.

I want to write a dynamic formula for this purpose......next year also this formula should work...so i can't hard code.
if StartDate is 10/01/2008 and EndDate is 10/31/2008 ...i want to display History
if StartDate is 11/01/2008 and EndDate is 12/31/2008 ...i want to display Future
if StartDate is 01/01/2008 and EndDate is 12/31/2008 ...i want to display Summary
How to fix this formula to make all three above condition work?.
if ({?StartDate} < CurrentDate) and ({?EndDate} < CurrentDate) then
"History"
if ({?StartDate} < CurrentDate) and ({?EndDate} > CurrentDate)
"Future"
else
"Summary"
Edited by: NewCR User on Nov 12, 2008 6:06 PM

Try this
if ({?StartDate} in LastFullMonth) and ({?EndDate} in LastFullMonth) then
"History"
else
if month({?StartDate})=month(currentdate) and year({?StartDate})=year(currentdate) and month({?EndDate})=month(currentdate) and year({?EndDate})=year(currentdate) then
"Future"
else
"Summary"
If it doesn't work then try this
if month({?StartDate})<month(currentdate) and year({?StartDate})=year(currentdate) and month({?EndDate})<month(currentdate) and year({?EndDate})=year(currentdate) then
"History"
else
if month({?StartDate})>month(currentdate) and year({?StartDate})=year(currentdate) and month({?EndDate})>month(currentdate) and year({?EndDate})=year(currentdate) then
"Future"
else
"Summary"
Regards,
Raghavendra
Edited by: Raghavendra Gadhamsetty on Nov 12, 2008 6:23 PM

Similar Messages

  • Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Everytime this happens Ihave to power down and restart! Any ideas would be appreciated!

  • After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer. Does anyone have any advice on how to fix this issue?

    After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer and .mac account. Does anyone have any advice on how to fix this issue?

    Welcome to the Apple Community.
    Which OS are you using.

  • My iPhone 4 no longer connects to my car or alarm clock after a recent sync to my computer.  The message at I get when trying to. Connect is "this accessory is not optimized for the device" or something like that.  Anyone know how to fix this?

    My iPhone 4 no longer connects to my car or alarm clock after a recent sync to my computer.  The message at I get when trying to. Connect is "this accessory is not optimized for the device" or something like that.  Anyone know how to fix this?

    Hello there philp_69,
    If I understand correctly it sounds like your phone hasnt been recognized in iTunes on your PC since the last couple of updates. I would use the troubleshooting in the following article which will walk you through the steps one by one. 
    iPhone, iPad, or iPod touch not recognized in iTunes for Windows
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • My new iPhone 4S can't connect to iTunes, App Store or iBooks via Wi-Fi. Works with 3G network. How to fix this?

    My new iPhone 4S (week old) can't connect to iTunes, App Store or iBooks via Wi-Fi (and some other apps e.g. Hollister – but most of the other apps like Safari or ebay work fine). There is no problem with those apps loading via 3G network. When I turn off the wi-fi, it runs over 3G and i can access App store without any problem. When i turn off the 3G network and turn the Wi-Fi on, those apps like App Store won't work, other apps work fine. When i turn on both Wi-Fi and 3G, the App store (and so on) is also not working, other apps are.
    I also found out that when the Wi-fi is on and I sign out my apple ID, the App store starts working! But when I log in again, it will imediatelly stop working. I've tried logging in with others apple IDs, still with the same result. There is no problem with my apple ID account, because it works on my iPad, even via Wi-Fi.
    When i first set up my iPhone, there were no complications using App store ia Wi-fi with exactly the same account. I don't know if it has anything to do with it, but this problem started when i logged in with my UK account and then wanted to log back in with my Czech account.
    I tried turning it off, hard reset and deleting my iPhone several time (even without back up). Nothing worked since then.
    Does anyone have any idea how to fix this?
    I would really appreciate ANY help. This porblem is driving me crazy!

    I am also having the same issue. Please help!

  • My Iphone 5 won't show up in itunes on my computer? Any idea on how to fix this problem?

    My Iphone 5 won't show up in itunes when i plug it into my windows 8 laptop but it shows up on my computer under devices and drivers as an iphone. Any idea on how to fix this problem so I can use my phone in itunes?

    http://support.apple.com/kb/ts1538

  • Page numbers displayed incorrectly in TOC in new Pages - does anybody know how to fix this?

    I'm working on a multi-section document with a single TOC for two sections. Section one uses lowercase roman numerals (i, ii,...) and section two arabic numerals (1, 2, ...). The page numbers are displayed correctly on the pages themselves, but in the TOC the first two headings from section two (pages 1 und 3) are displayed as "i" and "iii". This only started after the update to pages 5, everything was fine before that. Does anybody know how to fix this? I already tried deleting the TOC and inserting a new one and changing the numbers to uppercase letters and back, to no avail.
    thanks for any input

    Go back to Pages '09 inside the iWork Folder inside Applications.
    There are so many problems with Pages 5 it is difficult to know where to begin.
    Peter

  • Internal speakers are not working,  they're not showing up at all. Does anyone know how to fix this?

    My computer's speakers are not putting out sound. They worked fine yesterday, and I just now started up my computer and began using it today. The internal speakers don't show up on my list of output devices in settings, and I can't adjust the volume. Any help is really appreciated!!!

    They are all in the same folder and it says all images are there, but it is only showing 1 card's images at a time. Does anyone know how to fix this?
    This is kind of confusing, on the one hand you say "it says all images are there" and then you directly contradict this by saying "it is only showing 1 card's images at a time".
    Could you explain in a lot more detail what you see (and don't say "it", say exactly what part of Lightroom or what part of your operating system you are looking at), or show us a screen capture?

  • Hi. I get the following message when trying to update or install an application: "impossible to connect to iTunes store". Does anyone know how to fix this? Thanks!

    Hi. I get the following message when trying to update or install an application: "impossible to connect to iTunes store". Does anyone know how to fix this? Thanks!

    Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • Messages on my MacBook Air won't send messages over iMessage. Anyone know how to fix this?

    In preferences, under accounts, it claims that my Apple iD is hooked up to messages, including my phone number and email address...yet it isn't sending messages they always fail. Does anyone know how to fix this problem? It would be a great help.

    Read this whole message before doing anything.
    Back up all data.
    Quit Messages if it’s running.
    Step 1
    Hold down the option key and select
    Go ▹ Library
    from the Finder menu bar. Move the following items from the Library folder to the Trash (either may not exist):
    Caches/com.apple.Messages
    Caches/com.apple.imfoundation.IMRemoteURLConnectionAgent
    Leave the Library folder open. Log out and log back in. Try Messages again. If it works now, stop here. Close the Library folder.
    Step 2
    If you still have problems, quit Messages again. Go back to the Finder and move the following item from the open Library folder to the Desktop:
    Messages
    Note: you are not moving the Messages application. You’re moving a folder named “Messages.”
    Test. If Messages now works, delete the Messages folder on the Desktop. Otherwise, quit Messages again. Put back the folder you moved, overwriting the newer one that may have been created in its place, and continue.
    Step 3
    In the Preferences subfolder, there may be several files having names that begin with "com.apple.iChat". Move them all to the Desktop. There may also be a file with the name "com.apple.imagent.plist". Move that to the Trash.
    Also in the Preferences folder, there's a subfolder named "ByHost". Open it and do the same thing.
    Log out and log back in. Test again. This time Messages should perform normally, but your settings will be lost. You may be able to put back some of the files you moved to the Desktop in this step. Relaunch and test after each one. Eventually you should find one or more that causes Messages to malfunction. Delete those files and recreate whatever settings they contained.
    If the issue is still not resolved, quit Messages again and put all the items you moved to the Desktop back where they were. You don’t need to replace the items you moved to the Trash. Stop here and post again.
    If you later decide that you don’t like the results of steps 2 and 3, you can undo them completely by quitting Messages and restoring the items you deleted in those steps from your backup.

  • My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    http://discussions.apple.com/thread/3418045?tstart=60

  • My windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
    As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files.

  • When I connect my Mac Mini 2011 with Lion to a TV via HDMI and an earphone cable is plugged in, it´s not possible to choose sound out via hdmi, as opposed to connection via minidisplay port. Anybody knows how to fix this?

    When I connect my Mac Mini 2011 with Lion to a TV via HDMI and an earphone cable is plugged in, it´s not possible to choose sound out via hdmi, as opposed to connection via the minidisplay port. Anybody knows how to fix this?

    Was just on the phone with Apple about this.
    The solution was as follows for me anyway...
    Go to your Finder
    Choose the Go Menu
    Choose Computer
    Choose your Macintosh Hard Drive
    Choose your "Library" Folder
    Choose the "Preferences" Folder
    There should be a folder called "Audio"
    Move that whole folder to the trash
    Empty the Trash
    Restart from the Apple Menu
    When you are back up and running;
         Choose System Preferences from the Apple Menu
         Choose Sound
          In the output tab you should now be able to make the HDMI "Sticky"
          Enjoy your sound over HDMI and no more dirty knees or broken backs unplugging the desktop speakers!
    Mac Mini 2011 2.5Ghz 8 GB of RAM - Planar 17" VGA via display port adapter and Samsung 26" LCD TV via HDMI

  • Hey when ever i download and install Itunes then i open it says error finding folder please re download and I tried a tons of times and it didn't work. Does anyone know how to fix this?

    Hey when ever i download and install Itunes then i open it says error finding folder please re download and I tried a tons of times and it didnt work. Does anyone know how to fix this?

    Hi Beege140,
    I have an article for you that will help you address this launch issue with iTunes:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • I am trying to pair my cell phone and tablet using Messages   App,  but only MMS messages will come through on my tablet.   I've tried pairing and unpaired,  reinstalling app on my tablet,  and can't figure it out.   Any idea how to fix this?

    I am trying to pair my cell phone and tablet using Messages   App,  but only MMS messages will come through on my tablet.   I've tried pairing and unpaired,  reinstalling app on my tablet,  and can't figure it out.   Any idea how to fix this?
    Thanks

    I Shared my most ridiculous situation but didn t log under your problem.
    sorry, I gave you your answer under sunshine99 or Dianna. I want out and you want in.
    if you not find just email me at [removed]
    thanks
    Personal information removed as required by the Verizon Wireless Terms of Service
    Message was edited by: Admin Moderator

Maybe you are looking for

  • Oracle.jbo.AttrValException: JBO-27019: Get method for attribute

    Hi Guys, I am trying to add a new column to Oracle quoting.It has already been customized by some consultant few years back. I followed the note 392728.1 on metalink and also have the documentation by the previous consultant but getting the error ora

  • Trivia Game: Error while testing CS3 app in CS4

    I have been attempting to test an exercise file for a Trivia Game written in AS3 using the Flash CS3 IDE. Unfotunately I have been receiving two errors each time its run while using Flash Professional CS4.: <ol> <li><strong> 1023: Incompatible overri

  • Disjointed rollover question

    I have a floor plan of a shopping center with 24 rollover buttons.  Each button has been sliced and linked to a frame (swap image) that shows the facade of a store.  All photos (24 in all) preside in the same location on the canvas.  Here is my probl

  • EF6: How can I get navigation properties automatically updated?

    I've defined the following entities: public abstract class EntityBase public int Id { get; set; } public string Name { get; set; } public class Person : EntityBase public virtual HashSet<Message> Messages { get; set; } public int CountryId { get; set

  • Payment Wizard with check

    Hi, I created one payment method of type chech and related this to PN´s. I´m using Payment wizard and i get to pay, but it creates two check´s and I want just one. See that i choose two vendors. Thanks a lot. Wagner