dbTalk Databases Forums  

Create a custom member depending on a dynamic range measure value.

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


Discuss Create a custom member depending on a dynamic range measure value. in the microsoft.public.sqlserver.olap forum.



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

Default Create a custom member depending on a dynamic range measure value. - 09-06-2006 , 05:32 AM






Hi,

I have this problem:

I need to create a Custom Member (Dimension) that depends on the value of
a measure (Salary).
In few words, depending on the LastYear Salary I need to classify the Employee
into 3 classes "Rich - Normal - Poor" ... to define this class there are
value ranges, i mean for an YearSalary between 0 and 10000 Class is "poor",
for YearSalary between 10000 and 80000 is "normal" and so on...
how can i create this custom member?!?!

Thanks a lot
Ste



Reply With Quote
  #2  
Old   
tsachin@gmail.com
 
Posts: n/a

Default Re: Create a custom member depending on a dynamic range measure value. - 09-06-2006 , 12:52 PM






Hey,

Have you tried a case statement


Stefano wrote:
Quote:
Hi,

I have this problem:

I need to create a Custom Member (Dimension) that depends on the value of
a measure (Salary).
In few words, depending on the LastYear Salary I need to classify the Employee
into 3 classes "Rich - Normal - Poor" ... to define this class there are
value ranges, i mean for an YearSalary between 0 and 10000 Class is "poor",
for YearSalary between 10000 and 80000 is "normal" and so on...
how can i create this custom member?!?!

Thanks a lot
Ste


Reply With Quote
  #3  
Old   
Stefano
 
Posts: n/a

Default Re: Create a custom member depending on a dynamic range measure value. - 09-07-2006 , 03:22 AM



Hi,

Thanks for the answer... it probably should work for constant ranges, but
my ranges are in another Table like this:

ClassID int
ClassName varchar
LowerLimit float
UpperLimit float

so it means that i have to lookup that table to get the ClassName depending
on the YearSalary between LowerLimit and UpperLimit.

(i'm sorry i forgot to tell you that)

Thanks a lot
Ste



Hello tsachin (AT) gmail (DOT) com,

Quote:
Hey,

Have you tried a case statement

Stefano wrote:

Hi,

I have this problem:

I need to create a Custom Member (Dimension) that depends on the
value of
a measure (Salary).
In few words, depending on the LastYear Salary I need to classify the
Employee
into 3 classes "Rich - Normal - Poor" ... to define this class there
are
value ranges, i mean for an YearSalary between 0 and 10000 Class is
"poor",
for YearSalary between 10000 and 80000 is "normal" and so on...
how can i create this custom member?!?!
Thanks a lot
Ste



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 - 2012, Jelsoft Enterprises Ltd.