[solved] Convert Date Formula to Days in Report

madmmadm Member Posts: 92
edited 2008-07-09 in Navision Attain
I wish to convert the time.lead times to a consistant type within a report. During setup, the user could have entered 1W, 7D, 1M, 30D etc so in a report I would like this to show 7, 7, 30, 30 etc etc so that a comparison can be made out of Navision.

Is there anyway to do it?

Thanks :)

Comments

  • BeliasBelias Member Posts: 2,998
    MESSAGE('%1',CALCDATE('<1M>',010101D)-010101D);
    

    Use your calcformula on a fixed date, then subtract the fixed date and you'll obtain the number of days of your calcformula :wink:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • madmmadm Member Posts: 92
    Belias wrote:
    MESSAGE('%1',CALCDATE('<1M>',010101D)-010101D);
    

    Use your calcformula on a fixed date, then subtract the fixed date and you'll obtain the number of days of your calcformula :wink:

    excellent :D it's worked exactly how i wanted it to!! Thanks :)
Sign In or Register to comment.