Go to primary content
Previous
Previous
 
Next
Next

Example

This calculated measure computes the percentage that each customer contributes to its parent in the Units measure.

Calculation

Share of measure UNITS in CUSTOMER_MARKET hierarchy of the CUSTOMER dimension as a ratio of member's parent.

OLAP Expression Syntax

(SHARE(UNITS_CUBE.UNITS OF CUSTOMER.MARKET PARENT)) * 100

Query Results

The Pct Share column shows the percentage that each market segment contributes to the total number of units sold.

Customer             Parent   Units Pct Share
-------------------- ------ ------- ---------
Reseller             TOTAL   304415        54
Consulting           TOTAL   250931        44
Government           TOTAL     5756         1
Manufacturing        TOTAL     4121         1
Education            TOTAL      495         0
Total Customer       null    565718       100