dbTalk Databases Forums  

Client side calculated measure uses outside data

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


Discuss Client side calculated measure uses outside data in the microsoft.public.sqlserver.olap forum.



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

Default Client side calculated measure uses outside data - 07-31-2003 , 04:38 PM






This might sound far fetched, I need to create a calculated measure that
simply multiplies 2 numbers together, one is in a measure (we'll call it
Count), and the other is not in the cube, and for security reasons it cannot
be in the cube. To make matters more fun: the multiplier changes depending
on what details are selected.

For example: say you have a dimension name Products with 2 levels: level 1
is product catagory, level 2 is Products.

The measure you have on the server is Count. What has to calculated on the
client is Price. And every Product has a differnt price. And again this
has to be stored on the client. I dont care how it is stored on the client,
it just has to be stored on the client.

So, doing a simple Count * $###.## calculation on the all level is not going
to work, but can this be done?



Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Client side calculated measure uses outside data - 07-31-2003 , 08:09 PM






Clearly this would have to be implemented via a UDF (user-defined function).
It is the only mechanism that can be used to combine Analysis Services data,
an outside data element -- and then be displayed as if it was something
within the cube. There are a few examples of how to write a UDF in Books
OnLine.
Hope that helps.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Chris Brandsma" <not.my.address (AT) nowhere (DOT) com> wrote

Quote:
This might sound far fetched, I need to create a calculated measure that
simply multiplies 2 numbers together, one is in a measure (we'll call it
Count), and the other is not in the cube, and for security reasons it
cannot
be in the cube. To make matters more fun: the multiplier changes
depending
on what details are selected.

For example: say you have a dimension name Products with 2 levels: level 1
is product catagory, level 2 is Products.

The measure you have on the server is Count. What has to calculated on
the
client is Price. And every Product has a differnt price. And again this
has to be stored on the client. I dont care how it is stored on the
client,
it just has to be stored on the client.

So, doing a simple Count * $###.## calculation on the all level is not
going
to work, but can this be done?





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

Default Re: Client side calculated measure uses outside data - 08-06-2003 , 04:23 PM



Chris,

Another suggestion would be to include it in the cube,
then set security on that item such that no one can see
it.

Regards,

Steven Garno



Quote:
-----Original Message-----
Clearly this would have to be implemented via a UDF
(user-defined function).
It is the only mechanism that can be used to combine
Analysis Services data,
an outside data element -- and then be displayed as if
it was something
within the cube. There are a few examples of how to
write a UDF in Books
OnLine.
Hope that helps.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and
confers no rights.

"Chris Brandsma" <not.my.address (AT) nowhere (DOT) com> wrote in
message
news:K%fWa.1245$t45.370 (AT) news (DOT) cpqcorp.net...
This might sound far fetched, I need to create a
calculated measure that
simply multiplies 2 numbers together, one is in a
measure (we'll call it
Count), and the other is not in the cube, and for
security reasons it
cannot
be in the cube. To make matters more fun: the
multiplier changes
depending
on what details are selected.

For example: say you have a dimension name Products
with 2 levels: level 1
is product catagory, level 2 is Products.

The measure you have on the server is Count. What has
to calculated on
the
client is Price. And every Product has a differnt
price. And again this
has to be stored on the client. I dont care how it is
stored on the
client,
it just has to be stored on the client.

So, doing a simple Count * $###.## calculation on the
all level is not
going
to work, but can this be done?




.


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.