gephry Posted September 26, 2006 Posted September 26, 2006 I know I'm doing something wrong. I want a repeating calc field (30 repetitions) to calculate dates 30 days beyond the selected date. SelectedDate = date field where you select the date calcDates[30] = repetition1 = SelectedDate + 1, repetition2 = SelectedDate + 2, etc I originally had 30 fields calculating the previous field + 1 but that was cumbersome! There's got to be an easier way. I've tried a number of things: Let( [ repetition=Get(ActiveRepetititonNumber); lastrepetition=repetition-1]; If( lastrepetition=0; SelectedDate; SelectedDate + lastrepetition ) ) -----something to that effect; anyhow, it didn't work The most obvious: SelectedDate + Get( ActiveRepetitionNumber ) (no good---I realized you must be in a repetition number for it to work) I just want the 30 repetitions to autofill with the previous repetition + 1..... hmmm. Ideas?
comment Posted September 26, 2006 Posted September 26, 2006 Try: Extend ( SelectedDate ) + Get(CalculationRepetitionNumber)
Raybaudi Posted September 26, 2006 Posted September 26, 2006 Hi try this: Extend ( date ) + Get ( CalculationRepetitionNumber ) P.S. obviously result date (not number!)
Fitch Posted September 26, 2006 Posted September 26, 2006 You could try Extend... oh never mind. :joust:
gephry Posted September 26, 2006 Author Posted September 26, 2006 Extend doesn't work. I mean, it helps the calculation: now the fields contain data. BUT, not the correct data. They all contain SelectedDate. None of them computed Get( ActiveRepetitonNumber ) ---- because no repetition was selected. Hmmm, maybe it's not possible.
Raybaudi Posted September 27, 2006 Posted September 27, 2006 Hi gephry two answers with the same calc...do you think we are both wrong ? Copy and paste that calc... or see what is the difference between CalculationRepetitionNumber and ActiveRepetitonNumber
gephry Posted October 2, 2006 Author Posted October 2, 2006 Ah blimey. My apologies. I hadn't even noticed the CalculationRepetitionNumber instead of ActiveRepetitionNumber. Extend( SelectedDate ) + Get( CalculationRepetitionNumber ) does exactly what I intended whereas the other does not work at all. Thanks for all your help!
Recommended Posts
This topic is 6688 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now