General recommendations for saving ratios in the data warehouse is to store separately the numerator and denominator separately. In the case where the metric is calculated as the ratio of facts and metrics dimensional attribute this recommendation is met implicitly. The question is how to design metadata in OBI. Eg.: Data Model: F_SALES_BY_STORE_PD. SALES_AMT (sales) and D_STORE.STO_SELLING_AREA (m2 sales area stores). We are interested in "sales per m2 of sales area stores" (hereinafter Tržba/m2). BMM layer OBI looks like this: A classic model where:
- Fact-Sales has LTS: F_SALES_BY_STORE_PD and
- STO_SELLING_AREA is an attribute dimension Dim - Store that has LTS D_STORE