Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Calulcations YTD in the cube

Go down

Calulcations YTD in the cube Empty Calulcations YTD in the cube

Post  sssqllearner Tue Oct 14, 2014 9:05 am


Our YTD calculation in cube is not working for some reason for half of the year i.e. our year is divided into 2 cycles. cycle 1 is from January until June and cycle 2 is from July to December. For some reason YTD is working correctly for 1st cycle but when we are doing calculation for cycle 2 the sales are not adding correctly in the cube. This is very tricky situation because this is the same issue for last year where cycle 1 sales are matching but cycle 2 figures are incorrect.

Our YTD calcuations is something like below:
SCOPE([Date Utility].[Date Accumulations].[YTD]);  
   -- Date
       this = Aggregate(
   [Date].[Date].[Date].Members, -- get siblings within ...
[Date].[Date].CurrentMember -- ... corresponding year
               ).Item(0).Item(0) : [Date].[Date].CurrentMember,
               ([Measures].CurrentMember, [Date Utility].[Date Accumulations].DefaultMember)

do you know what can be the reason behind this? for your reference the above script is used in various other cubes and those cubes are fine. It is just one cube which is causing these issues.



Posts : 8
Join date : 2014-09-16

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum