Hi Robb,
The data buffers should look at prior period. The Test factors should look at current period, as how the code shows.
Data buffers do not have values on UD1 ID on prior period.
Test factors have data on UD1 ID on current period.
The calculation logic should be = DirCOGSDataBuffer / TotDirCOGSDataBuffer * Test Rate * Test Count, where
DirCOGSDataBuffer and TotDirCOGSDataBuffer are values from prior period on UD1 ID
Test Count and Test Rates are values from current period on UD1 ID
But the problem is DirCOGSDataBuffer and TotDirCOGSDataBuffer do not have values on UD1 ID in prior period. Because of that, the client wants to use another UD1 member, let's say UD1 A, and replace the calculation as follows: DirCOGSDataBuffer UD1 A / TotDirCOGSDataBuffer UD1 A * Test Rate UD1 ID * Test Count UD1 ID.
The result should be placed on UD1 ID.
This should happen only for this special cases when there is no data on certain UD1's for prior period. The rest of the cases should follow the logic as it is now in the code.