Calcite | Level 5

## How to create loop for every month updated 12 months data?

I have master data of 12 months. I am caluclating value of one varible based on previous months values. I have calculated Feb values based on Jan values. Now, I want to calculate March value based on Jan and New Feb values; April value based on Jan, New Feb, New March values and so on...The new monthly value has to go in master dataset everytime. I have to use updated master file everytime.

6 REPLIES 6
Garnet | Level 18

## Re: How to create loop for every month updated 12 months data?

Please provide a sample data with the 12 month in it.

Calcite | Level 5

## Re: How to create loop for every month updated 12 months data?

I have caluclated it  for Feb and  applied back on master dataset I am just trying to iterative process for 12 months.

Diamond | Level 26

## Re: How to create loop for every month updated 12 months data?

@sasuser1031 wrote:

I have caluclated it  for Feb and  applied back on master dataset I am just trying to iterative process for 12 months.

This completely avoids answering the question.

We still don't know what the calculation is that you are doing.

And you haven't provided an example, as was also requested.

--
Paige Miller
Diamond | Level 26

## Re: How to create loop for every month updated 12 months data?

Now, I want to calculate March value based on Jan and New Feb values;

Explain. What is the calculation? Sum? Average? Delta? Time series prediction? arc-cosine?

--
Paige Miller
Calcite | Level 5

## Re: How to create loop for every month updated 12 months data?

I have caluclated it  for Feb and  applied back on master dataset I am just trying to iterative process for 12 months.

Garnet | Level 18

## Re: How to create loop for every month updated 12 months data?

``````do i = 1 to 12;