Feeding a ConsolidatedMax rule
Posted: Sun Aug 24, 2014 4:00 pm
Consider a measure where N-cells are being rule-calculated. Also assume that @ C-level I have one of the following functions: ConsolidatedMax, ConsolidatedMin, ConsolidatedAvg, ConsolidatedCount.
To get the ConsolidatedAvg or ConsolidatedCount functions to calculate correctly, ALL the N-level cells must be fed.
But to get ConsolidatedMin and ConsolidatedMax to show the correct value @C level, I'm betting that I don't actually need to feed EVERY N-level element. If there's something that tells me which of the N-level elements will have the max (or min) value, I should be able to get away with feeding just that element.
Cube: RealEstateCost has 6 dims (one of which is the region dim listed below) + 1 measure dim.
Example: A Region dimension with the following hierarchy
Measure:
Now if Chicago has the highest Price-per-Sq-foot in Illinois and Dayton has the Highest price-per-sq-foot in Ohio, I dont really need to feed any of the other cities in the region Dim. Feeding Chicago will ensure that Illinois is fed and calculates properly. Feeding Dayton ensures that Ohio gets fed and Calculatd properly. Similarly feeding the equivalent cities in the other 3 states will ensure that the EastNorth Central Division of Midwest Division gets fed and properly.
Essentially the value shown on ConsolidatedMax with ALL elements fed = Value calculated on a ConsolidatedMax calc with only a single element (with the highest value) fed.
Your thoughts guys? Does this make sense? or have completely lost it?
How does this help me?
My users will have access only to the Consolidated Elements (States and above) in this reporting cube anyway, so I don't need to worry about the unfed cities not being visible on SupressZeroes.
To get the ConsolidatedAvg or ConsolidatedCount functions to calculate correctly, ALL the N-level cells must be fed.
But to get ConsolidatedMin and ConsolidatedMax to show the correct value @C level, I'm betting that I don't actually need to feed EVERY N-level element. If there's something that tells me which of the N-level elements will have the max (or min) value, I should be able to get away with feeding just that element.
Cube: RealEstateCost has 6 dims (one of which is the region dim listed below) + 1 measure dim.
Example: A Region dimension with the following hierarchy
Code: Select all
-Midwest - Division 3 - ENC
--Illinois
----Chicago
----Springfield
--Ohio
----Cinci
----Dayton
----Columbus
Code: Select all
['RealEstatePricePerSqFoot'] = C: ConsolidatedMax (2, ', !dim1, !dim2, !dim3, ... , !msr );
Essentially the value shown on ConsolidatedMax with ALL elements fed = Value calculated on a ConsolidatedMax calc with only a single element (with the highest value) fed.
Your thoughts guys? Does this make sense? or have completely lost it?
How does this help me?
My users will have access only to the Consolidated Elements (States and above) in this reporting cube anyway, so I don't need to worry about the unfed cities not being visible on SupressZeroes.