DateTimeDiff
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi! I used the DateTimeDiff formula to take the difference in months between the date now (DateTimeNow()) and a date column in my data and created a new column (called Month Diff) to display the difference. From here, I want to filter out so I only see data from within the past two months. I thought that using a filter for [Month Diff] <= "2" would be the right approach here, however, after running this filter the True output still shows results with differences greater than 2 months and I am not sure why. Any help would be greatly appreciated!
(First screenshot shows my formula for the difference in months formula which worked and gave the MonthDiff output column; second screenshot shows the filter for the MonthDiff column to be less than or equal to 2; third screenshot shows the output from that filter which still includes data in the MonthDiff column that's greater than 2)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In your formula tool you have assigned "Month Diff" to be a String, please change to Int16.
then remove the double quote in your filter tool around the number 2 and lets see if it will be correct after that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That worked, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
