dbTalk Databases Forums  

scalar values from a cube

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


Discuss scalar values from a cube in the microsoft.public.sqlserver.olap forum.



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

Default scalar values from a cube - 06-27-2006 , 12:21 PM






Is there a way to pull a scalar value from a cube? Is this common?
Can I do it using .NET? Does anybody have a sample query that I can
test against the Adventure Works example.

Thanks,


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

Default Re: scalar values from a cube - 06-27-2006 , 02:58 PM







leo (AT) junquera (DOT) com wrote:
Quote:
Is there a way to pull a scalar value from a cube? Is this common?
Can I do it using .NET? Does anybody have a sample query that I can
test against the Adventure Works example.

Thanks,
SELECT FROM [Cube Name] WHERE ([Measures].DefaultMember, ... )

will give you a scalar value.

Yes, you can do it from .NET
How are you connecting to the cube? In your case I'd think the MSOLAP.2
OLEDB provider will be the simplest option.

You can use it with an OLEDB Command ExecuteScalar, just like you would
with a SQL database

-- a --
PS: No, it's not unheard of to want a single value from a cube ... as
long as that's not all that the cube's for



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

Default Re: scalar values from a cube - 06-28-2006 , 06:42 AM



Thank you. Currently we have function calls into the database that can
be used in Excel cells. The calls for aggregate transactional data are
two slow so the idea of "pre-calculated" values made sense. That lead
me to OLAP and Analysis Services. This would allow users to also
larger sets of data via pivot tables which might end up being more
valuable to them. The individual calls allow them the flexibility to
create models and ad hoc requests so I still want to maintain that
functionality. Just give them a richer set of calls. This is all a
little new to me coming from a OLTP background.

Thanks for your help.


Reply With Quote
  #4  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: scalar values from a cube - 06-28-2006 , 07:13 AM



In article <1151494969.124424.252890 (AT) 75g2000cwc (DOT) googlegroups.com>,
leo (AT) junquera (DOT) com says...
Quote:
Thank you. Currently we have function calls into the database that can
be used in Excel cells. The calls for aggregate transactional data are
two slow so the idea of "pre-calculated" values made sense. That lead
me to OLAP and Analysis Services. This would allow users to also
larger sets of data via pivot tables which might end up being more
valuable to them. The individual calls allow them the flexibility to
create models and ad hoc requests so I still want to maintain that
functionality. Just give them a richer set of calls. This is all a
little new to me coming from a OLTP background.

Thanks for your help.


You might be interested in looking into the Excel Addin for Analysis
Services. It has some functions that allow you to get a single scalar
value.

http://www.microsoft.com/downloads/d...DAE82128-9F21-
475D-88A4-4B6E6C069FF0&displaylang=en

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell


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.