dbTalk Databases Forums  

First Purchase measure/dimension?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss First Purchase measure/dimension? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrea Worley
 
Posts: n/a

Default First Purchase measure/dimension? - 07-23-2003 , 01:58 PM






You could implement the logic in a CASE statement (or UDF)
in your fact table. You will have to make your fact table
a view to do this if it is already not one.




Quote:
-----Original Message-----
Various types of analysis at our company revolves around
the notion
of "did the client make their first purchase in _______".

Example:
I want to look at all clients that made their first
purchase of product A in
2002 and then see
how much of product B they bought in 2003.

However the definition of first purchase varies, some
people are looking at
first purchase
of anything (All products) and some people are looking at
first purchase of
a specific product and
some people even put criteria like > $1000 of a product
in the mix.

Any help on how to approach this type of problem is
appreciated. Looking
for something
generic that would work for everyone if possible.

Thanks in advance,
Mark


.


Reply With Quote
  #2  
Old   
Mark Andrews
 
Posts: n/a

Default Re: First Purchase measure/dimension? - 07-23-2003 , 02:39 PM






Ok I do use a view and doing case logic is easy in the view but how do I
make this thing flexible? Your answer is a bit vague.

I'm sorry I know this is a tough question,
Mark


"Andrea Worley" <k_rage (AT) hotmail (DOT) com> wrote

Quote:
You could implement the logic in a CASE statement (or UDF)
in your fact table. You will have to make your fact table
a view to do this if it is already not one.




-----Original Message-----
Various types of analysis at our company revolves around
the notion
of "did the client make their first purchase in _______".

Example:
I want to look at all clients that made their first
purchase of product A in
2002 and then see
how much of product B they bought in 2003.

However the definition of first purchase varies, some
people are looking at
first purchase
of anything (All products) and some people are looking at
first purchase of
a specific product and
some people even put criteria like > $1000 of a product
in the mix.

Any help on how to approach this type of problem is
appreciated. Looking
for something
generic that would work for everyone if possible.

Thanks in advance,
Mark


.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.