The algebra that supports this calculation is the following:
Gross Margin/Total Revenue = Gross Margin Percent
What makes the Gross Margin Percent calculation challenging, is the fact that both the Total Revenue and the Gross Margin accounts that are used to calculate the percentage are non base level. This means the numbers behind these accounts don't readily exist in the native fact tables and need to be derived first before the percentage is calculated.
This example will illustrate the following BPMC best practice concepts with the following advanced conditions applied:
- Non base level calculations using the Data Map only
- No use of remote staging
- Minimal custom SQL code
- Calculation performed on unoptimized non-distinct data
- Calculation performed on Multi-level data
The following prerequisites are required for this example:
- A base level target Account called GMarginPct needs to be created in the Appshell planning account dimension
- A new feed needs to be created called GrossMarginPercentCalc
- The surface area of this feed needs to be configured. Both source and destination of the surface area need to point to the 7.5 Appshell planning application
- BPMC Config Builder 2.0.1 or greater.
- Raw Data
- Data Map
- Optimize and Filter
These principles and concepts depicted here can used for ANY non based level calculation. A critical aspect of getting the Data map to work on unoptimized, multi-level data is understanding how to use the RTOC capability.
Scott,
ReplyDeleteThis is good, can ypu post some pictures?
Thanks
Suvas
Posted an example picture of configuration worksheet. For full example, download full worksheet here:
ReplyDeletehttps://vpn1.breakaway-inc.com/dana/download/BPMC_GrossMarginPercentCalcExample.xlsx?url=/dana-cached/fb/smb/wfv.cgi?t=p&v=1.0000000001.000005.0&si=0&ri=0&pi=0&ignoreDfs=1&dir=BPMC%5CDocs&file=BPMC_GrossMarginPercentCalcExample.xlsx