Skip to Content
Author's profile photo Rahul Handa

Macro – Copy “B” KF to “A” KF by Selecting Columns

Often users want to consolidate (so called composite forecast) their forecast from different sources example marketing, sales, actual billings & statistical forecast. Either they could copy from one key figure or combination of two or more key figures. To do this, they need to copy data from different key figures to one key figure w.r.t. buckets. Example;

In below example I would like to copy first 3 weeks from “Last Year Actual Billing Qty” to Composite Forecast, then for next 4 weeks from “Sales Forecast”, then for next 2 weeks from “Statistical Forecast” and finally from “Last Year Actual Billing Qty”. This means we need to select first 3 columns and last column to copy Last Year Actual Billing Qty into Composite forecast. Same way different columns to copy their respective numbers.

Macro 2.JPG

Now we need to define a macro with function COLUMN_MARKED. In below example LYABQ stands for = Last Year Actual Billing Qty. This is just an example macro for this funciton.

Macro 1.JPG

Make sure we assign a push button to the macro. This will make sure the macro is visible in planning book when user is processing the data.

Macro 1.JPG

Let’s check the effect of macro. Before executing the macro the data in selected KF’s is different for 5 different buckets. We will select only three buckets.

Macro 1.JPG

After executing the macro the data in three buckets is same while in rest of the two it’s as before (without any change).

Macro 1.JPG

This way we need to define 3 different macro’s with 3 different icon’s to copy the data from different key figure’s to one key figure w.r.t. different buckets.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.