Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

SSAS Cube Calculation based on Lookback Window

$
0
0

Hello,

I am not sure how to implement this in SSAS. Right now, we are using tables to create the reports, but I would prefer to build an SSAS cube if possible. Here is a little background:

We need to be able to calculate Historical Users vs Current Users based on a specific Date added to the filter. In order to calculate the Historical vs Current users, each group has a different number of months since last use to determine if the user is"Historical" or "Current". We currently have a Configuration table that has Group#, and # of months lookback that determine whether to classify as a New or Existing user.

The lookback table is like this:

Group ID      |     Lookback Months

1                             6

2                            12

3                            13

The end result would to be something like this:

Group:              Current Users:                 Historical Users

1                    (Count last 6 months)        (All users > 6 months, and not in the New Users)

2                    (Count last 12 months)        (All users > 12 months, and not in the New Users)

3                    (Count last 13 months)        (All users > 13 months, and not in the New Users)


Viewing all articles
Browse latest Browse all 2472

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>