In a message dated 00-02-11 11:15:46 EST, you write:
If a user does not show up in period 1 but shows up in period 2 they are
considered new.
If a user does not show up in period 1 but shows up in period 2 as well as period 3 they are considered converted.
If they are in period 1 they are current users.
To try to solve this problem, I created the following data in Excel:
Joe Period 1
Joe Period 2
Joe Period 3
Sue Period 3
Frank Period 2
Freddy Period 1
Mary Period 1
Mary Period 3
Gene Period 2
Gene Period 3
I created the following variables:
Variable: Count 1
Formula: =Count() Where (=“Period 1”)
Variable: Count 2
Formula: =Count() Where (=“Period 2”)
Variable: Count 3
Formula: =Count() Where (=“Period 3”)
Variable: Status
Formula: = If (IsNull(<Count 1>) And <Count 2>=1 And IsNull(<Count 3>)) Then “New” Else If <Count 1>=1 Then “Current User” Else If (<Count 2>=1 And <Count 3>=1) Then “Converted” Else “Undefined”
Given the problem statement:
In a message dated 00-02-11 11:15:46 EST, you write:
If a user does not show up in period 1 but shows up in period 2 they are
considered new.
If Count 1 is null and Count 2 = 1, then “New”
If a user does not show up in period 1 but shows up in period 2 as well as period 3 they are considered converted.
If Count 1 is null and Count 2 = 1 and Count 3 = 1 then “Converted”
If they are in period 1 they are current users.
If Count 1 = 1 the “New”
Anything else: “Undefined”
I can send you the Excel file and the BusObj file if you like, but based on the limited description of your problem it appears that this will work. You didn’t really say how your data was formatted, so I guessed.
The Count() Where (=“value”) returns a count of how many times that status appears for that name. You would, of course, need to build the formulas based on your own data.
Once the counts are done, then it becomes a matter of evaulating each count as per the definition of the problem.
Regards,
Dave Rathbun
Integra Solutions
www.islink.com
Listserv Archives (BOB member since 2002-06-25)