You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I am adding a calculated member to a cube where I want to aggregate differences between measures from a number of last periods against a measure for the current period:
Simplified I am using this:
SCOPE ([Measures].[Fact3]);
THIS =
Aggregate( LastPeriods(3,[Period].CurrentMember),
([Measures].[Fact1]-([Period].CurrentMember,[Measures].[Fact2]))
);
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Just to add that I will be extending this to aggregate the Squares/cubes of the differences and other calulcation so it is not just a case of reordering the simple math to Sum(last periods, Fact1) - 3*(CurrentMember,Fact2)