Hi,
Here is my question.
For the last year special store sales amount, we only calculate sales amount based on special store lists in current selected date.
If a store in current date is not a special store then we do not include this store for last year sales amount (even if this store was special store in last year). This means we don't care about last year store status and we only identify the special store status of all stores according to the date we selected.
In the fact, I join the flag ( which represents a special store) and added one colum for special sales calcualtion. (flag * net sales). In the cube, Currnet speical sales are correct but I couldn't get correct last year specail sales amount.
Below is the calculation for last year specail store sales amount but the numbers do not match.
------------------------------------------------------------------------------------------------------------------------------
IIF
(([Measures].[flag], [Date].[Fiscal Hierarchy].CurrentMember)=False,0,(
parallelperiod([Date].[Fiscal Hierarchy].[fiscal year],1),[Measures].[Special Sales]))------------------------------------------------------------------------------------------------------------------------------
Please give me some comments.
Thanks in advance.