Create a Cube Calculation by Prior Year Period

I have created a calculation called Prior Year Price Actual or ([PY Avg Price : Act]).

Now I have been given the requirement to create another calculation, Prior Year Price Actual or ([PY Avg Price : Act]) by PERIOD.  How can I adjust the query to complete this task. The new calculation would be named Prior Year Period.

September 2nd, 2015 6:23pm

Hi D Henson,

According to your description, you want to create a calculated measure to get the Price Actual for corresponding Period. Right?

In this scenario, since you already have an average measure for Prior Year, you just need to do same aggregation on Period level(I assume you are using Quarter). So you can modify the expression like:

Aggregate(
ancestor(
parallelperiod([Date].[Calendar].[Calendar Year],1,
[Date].[Calendar].currentmember),
[Date].[Calendar].[Calendar Quarter]),
[Measures].[Avg Price Actual]
)

Reference:
Ancestor (MDX)

Regards,

Free Windows Admin Tool Kit Click here and download it now
September 5th, 2015 8:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics