cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
UserID16644
Level V

How to calculate date from cumulative data?

I have a script that is pulling data from a server everyday. It has a date column from August-present. How can I get which data is from 2 Quarters or 3 Months or 4 Weeks or 10 Days starting from the present day from the data? This calculations should be in separated columns like. And I think a flag will be needed? And is it possible to continuously calculate this using the latest added date?

 

I'm not sure what is the easiest method for this but this is my example

Date2 Quarter3 Months4 Weeks10 Days
12-01-20240100
12-02-20240100
12-03-20240100
12-04-20240100
12-05-20240100
12-06-20240100
...0100
02-01-20240110
02-02-20240110
02-03-20240110
....0111
03-01-20240111
03-02-20240111
03-03-20240111
03-04-20240111
03-05-20240111
03-06-20240111
1 REPLY 1
jthi
Super User

Re: How to calculate date from cumulative data?

You can get the latest date using Col Max(:Date). Then you can use that create different formulas for example using date difference and a comparison

Date Difference(:Date, Col Max(:Date), "day") < 10

Date and Time Functions (jmp.com)

-Jarmo