In general, the measures use separated scope, which means that the "DemandIndex" measure does not have connection to the other measures. That being said, you will need to calculate "ChainShare" and "GroupShare" in the aggregate
function of the "DemandIndex" measure. Basically, you will need to aggregate both related measures in the aggregate function and then calculate the "DemandIndex" measure in the measure's result function.
Please refer to the schema.cube
documentation and more specifically the measures
section. All mentioned functions are documented there.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI