Forum Discussion

tgalla01's avatar
tgalla01
Frequent Visitor
4 years ago
Solved

DateDiff Incorrect output

The code (Top part of attached image) was created to calculate the difference of the First_Order_Date from the Second_Order_Date which if done correctly should give and output of the number of days from the first order to the second order, however the output (example shown by blue arrow) is giving a very incorrect number, giving a -295 output though the orders were put in on the same day, meaning the correct output should be 0. If anyone could give an input as to the issue and a way to resolve it that would be much appreciated. Thanks!

5 Replies

  • This looks like a calculated column.  You may need to expand the filter context beyond the current row.

    • tgalla01's avatar
      tgalla01
      Frequent Visitor

      Yes it is a calculated column. Here is more insight on that particular piece and obviously has been a struggle. Designating the second order using this logic has been the only real way that I've been somewhat able to pin down the second order a customer has placed.