Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Comparable periods in a cube solution

$
0
0
Hi everyone, I have to deal often with the requirement of the comparable periods. I will try to explain the details:We have a set of reports with different KPIs, which are always compared using these three, let’s say, categories: Last Year, Year to Date and Forecasted Value. Suppose also that there are two dimensions: Store and Time.The stores are sometime closed due to facelift, refurbishment, etc.It is required to compared the figures of each store and the three categories above only if the store was open in the current period and in the last year period and if the store has forecasted figures for the next year, otherwise the figures for the store must be discarded because are not comparable. A simple example could be a store the open in summer this year, of course if I compare the sales against the sales last year there is a huge increment, but it is not totally right or a faired comparison.The challenge is to automated this calculation into the cube, and then the report developer only have to select a Boolean filter to select the total values or only the values that correspond to the comparable periods. In the past the report developers create this logic manually in every report and also the analyst have to recreate it in their Excel sheets ad-hoc analysis.At the moment I implemented this logic in the view layer, creating the aggregation of stores, and days. Then if the combination store-day is comparable with the last year and the forecast I flagged it as comparable, otherwise this value is set to false. Then I have a dimension called comp logic with two members, total and comp.The logic is more complex that I’ve explained here and I would like to know if anyone of you have faced a similar requirement and which approach was implemented.Any comment would be appreciated.Kind Regards,

Viewing all articles
Browse latest Browse all 1341

Trending Articles