dbTalk Databases Forums  

Non-Numeric Measures

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


Discuss Non-Numeric Measures in the microsoft.public.sqlserver.olap forum.



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

Default Non-Numeric Measures - 12-21-2004 , 10:24 PM






I have a report which always requires me to show a particular field which is
a non-numeric (nvarchar(50)) datatype.

Just imagine it as a comment column which always has to be displayed in the
end report regardless of which combination of dimensions are chosen.

Is there a way to define a non numeric measure in AS in this case?

Just for a better understanding, the end report might carry columns like
Month of year (dimension), Customers of Region A (dimension), Total amount A
(Measure), Total amount B (Measure), Gross amount (Measure A+B), Description
(this is the measure that's not fitting into the picture)

Anyone got a better idea on how to do this? I would imagine defining
Description as 1 dimension of its own but that will not make the report
sensible.

Help please?



Reply With Quote
  #2  
Old   
Nestor
 
Posts: n/a

Default Re: Non-Numeric Measures - 12-22-2004 , 01:40 AM






anyone can be of any assistance here?

"Nestor" <n3570r (AT) yahoo (DOT) com> wrote

Quote:
I have a report which always requires me to show a particular field which
is a non-numeric (nvarchar(50)) datatype.

Just imagine it as a comment column which always has to be displayed in
the end report regardless of which combination of dimensions are chosen.

Is there a way to define a non numeric measure in AS in this case?

Just for a better understanding, the end report might carry columns like
Month of year (dimension), Customers of Region A (dimension), Total amount
A (Measure), Total amount B (Measure), Gross amount (Measure A+B),
Description (this is the measure that's not fitting into the picture)

Anyone got a better idea on how to do this? I would imagine defining
Description as 1 dimension of its own but that will not make the report
sensible.

Help please?




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

Default Re: Non-Numeric Measures - 12-22-2004 , 04:05 PM



Nestor,

Create a Calculated Measure and set its value expression to be an MDX query
that returns a string value.
For example, something like

iif(IsLeaf([Product].[Dept].Currentmember),[Product].[Dept].Currentmember.Properties("Name"),"")

This will return the value of the name property of the current member if it
is a leaf member of the Product dimension.

HTH

Keith

@yahoo.com> wrote

Quote:
anyone can be of any assistance here?

"Nestor" <n3570r (AT) yahoo (DOT) com> wrote in message
news:%23lyi$495EHA.936 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I have a report which always requires me to show a particular field which
is a non-numeric (nvarchar(50)) datatype.

Just imagine it as a comment column which always has to be displayed in
the end report regardless of which combination of dimensions are chosen.

Is there a way to define a non numeric measure in AS in this case?

Just for a better understanding, the end report might carry columns like
Month of year (dimension), Customers of Region A (dimension), Total
amount A (Measure), Total amount B (Measure), Gross amount (Measure A+B),
Description (this is the measure that's not fitting into the picture)

Anyone got a better idea on how to do this? I would imagine defining
Description as 1 dimension of its own but that will not make the report
sensible.

Help please?






Reply With Quote
  #4  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Non-Numeric Measures - 12-24-2004 , 11:11 AM



You can also make UDF(User Defined Function) to read the comment column or
others.

Regardless of any level or any cell, if you pass current cell's information
as a paramter to the UDF and receive its related comments, it will be much
more flexible.

Ohjoo Kwon
www.olapforum.com


"Keith" <keith (AT) alh (DOT) com> wrote

Quote:
Nestor,

Create a Calculated Measure and set its value expression to be an MDX
query
that returns a string value.
For example, something like


iif(IsLeaf([Product].[Dept].Currentmember),[Product].[Dept].Currentmember.Pr
operties("Name"),"")
Quote:
This will return the value of the name property of the current member if
it
is a leaf member of the Product dimension.

HTH

Keith

@yahoo.com> wrote

anyone can be of any assistance here?

"Nestor" <n3570r (AT) yahoo (DOT) com> wrote in message
news:%23lyi$495EHA.936 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I have a report which always requires me to show a particular field
which
is a non-numeric (nvarchar(50)) datatype.

Just imagine it as a comment column which always has to be displayed in
the end report regardless of which combination of dimensions are
chosen.

Is there a way to define a non numeric measure in AS in this case?

Just for a better understanding, the end report might carry columns
like
Month of year (dimension), Customers of Region A (dimension), Total
amount A (Measure), Total amount B (Measure), Gross amount (Measure
A+B),
Description (this is the measure that's not fitting into the picture)

Anyone got a better idea on how to do this? I would imagine defining
Description as 1 dimension of its own but that will not make the report
sensible.

Help please?








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.