Create a Cube Calculation by Prior Year Period


i have created calculation called prior year price actual or ([py avg price : act]).

now have been given requirement create calculation, prior year price actual or ([py avg price : act]) period.  how can adjust query complete task. new calculation named prior year period.

hi d henson,

according description, want create calculated measure price actual corresponding period. right?

in scenario, since have average measure prior year, need same aggregation on period level(i assume using quarter). can modify 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,


simon hou
technet community support




SQL Server  >  SQL Server Analysis Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........