Here’s another example of cube SOLVE_ORDER settings causing issues when interacting with query solve order.
If a calculated member is defined in a query which references a cube calculated member, the solve order of the query member can override the other calculated member.
Gender.override wraps maleMinusFemale, however, and sets a SOLVE_ORDER lower than [ratio]. When evaluating gender.override, the SOLVE_ORDER of maleMinusFemale relative to other calculated members no longer matters, since gender.override SOLVE_ORDER is what is considered at the point of evaluation.
Members defined in the cube:
member gender.maleMinusFemale as 'gender.m - gender.f', SOLVE_ORDER=3000, FORMAT_STRING='#.##'
member measures.[ratio] as 'measures.[unit sales] / measures.[sales count]', SOLVE_ORDER=10
------------------------------------------
Query:
WITH
MEMBER gender.override as 'gender.maleMinusFemale', SOLVE_ORDER=5, FORMAT_STRING='#.##'
SELECT {measures.[ratio],
measures.[unit sales],
measures.[sales count]} on 0,
{gender.override, gender.maleMinusFemale} on 1
FROM sales
| Ratio | Unit Sales | Sales Count |
override | 10.72727 | -236 | -22 |
maleMinusFemale | -0.05 | -236 | -22 |
No comments:
Post a Comment