Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Iterative Macro limitation

$
0
0

Hi Community,

 

I am trying to set up an iterative macro from a workflow which I have manually copy and pasted several rounds of the same repeating units:

 

SUMMARIZE - group by to get the total value for a reapeating date

JOIN - bring in this total

FORMULA - to divide the value for each row by its total value

 

The data looks something like this:

Date                          Value           Total Value (from Summarise)    New Fraction (from Formula)

12.02.03                         1                5                                                 1/5

12.02.03                         2                5                                                 2/5

12.02.03                         2                5                                                 2/5

15.02.03                         1                6                                                 1/6

15.02.03                         2                6                                                 2/6 

15.02.03                         3                6                                                 3/6

 

The new fraction becomes the inital Value and the process is repeated, creating a new Total Value. The reasoning behind using this type of macro over other is that the calcultion in the formula should be done on a row by row basis but it seems like you cannot extract the total values - as the iterative flows through one row at a time, how would you go about setting up this repeting workflow?

Finally there last step is to filter out thosee values that total=6.

 

Cheers,

Alexandra

  

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles