Forum Discussion

PaulPeterson1's avatar
PaulPeterson1
Qrew Assistant Captain
6 years ago

Duration to Numeric not working

I am trying to calculate the difference between an actual and forecast date using the following formula:

If(not IsNull([Master Data - PA Date]), ToNumber(ToText([Master Data - Scheduled Finish Date - CCD] - [CCD at T - 7] )))

The only results that are populating are the ones where both dates match, Then I get a 0 as expected.  but I don't get positive or negative numbers displaying if the dates do not match.

------------------------------
Paul Peterson
------------------------------
  • try this

    If(not IsNull([Master Data - PA Date]), ToDays([Master Data - Scheduled Finish Date - CCD] - [CCD at T - 7] ))

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • PaulPeterson1's avatar
      PaulPeterson1
      Qrew Assistant Captain

      Thank you!

      That resolved the problem!  Found one other glitch as well.  I'm still getting used to the QuickBase Syntax



      ------------------------------
      Paul Peterson
      ------------------------------