Forum Discussion
Calculating Days Between a Date and Today
- 9 years ago
Yes, it will likely return negative INT value for today's date, if there are blanks.
You can nest the function in IF() function to return blank if [Due Date] is blank.
=IF(ISBLANK('Account Planning'[Due Date]),BLANK(),INT('Account Planning'[Due Date]-'Account Planning'[TodayCol]))
I have a simple calculation to show how many days until a shipment of product is expected to arrive. The formula I used is: Expected Arrival in days = int('FA Live$Purchase Line'[Expected Receipt Date]-Today()). It works fine EXCEPT for shipments arriving today. Then it shows 3 days rather than 0 days.
I found that the INT(Today()) = 43039 (October 31,2017)
I found that the INT('FA Live$Purchase Line'[Expected Receipt Date]) for a shipment due today = 43042.
This is confusing to me. Any help would be appreciated.