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

SQL Server PSProvider SQL Server Authentication

How to calculate the delta size while diffing the files in TeamFoundationServer ?

How to capture screen in silverlight apps