dbTalk Databases Forums  

OR-problem in Analysis Services

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


Discuss OR-problem in Analysis Services in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Barrett Jensen
 
Posts: n/a

Default OR-problem in Analysis Services - 05-06-2004 , 09:37 AM






Hi,

I am wondering if this is possible... I have a cube concering the sales of
cars. The cube contains two dimensions

- Manufacturer
- Color
- Size

And two measures

- SalesPrice
- PurchasePrice

Now... I want to be able to select the cars that come from one or more
specific manufacturers OR have one or more specific colors. The way Analysis
Services usually works, if I pick one or more manufacturers and one or more
colors, I end up with the cars that are from these specific manufacturers
AND have these specific colors.

Is it possible?

Thanks in advance!

/Michael



Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: OR-problem in Analysis Services - 05-06-2004 , 09:28 PM






Can you give an example of the query results you want?

Here is an initial idea, don't know if this applies:
Quote:
With Set [Mnfs] as '{[BMW],[Ford],[Honda]}'
Set [Clrs] as '{[Red],[Green],[Blue]}'
Set [Combos] as 'Except(CrossJoin(
[Manufacturer].[Brand].Members,[Color].[Hue].Members),
CrossJoin(Except([Manufacturer].[Brand].Members,[Mnfs]),
Except([Color].[Hue].Members,[Clrs])))'

Select [Measures].Members on Columns,
[Combos] on Rows

From AutoSales
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
  #3  
Old   
Chris Webb
 
Posts: n/a

Default Re: OR-problem in Analysis Services - 05-07-2004 , 04:58 AM



In addition to Deepak's comments, you might also be interested in
reading the following thread:

http://groups.google.co.uk/groups?hl...%3D10%26sa%3DN

HTH,

Chris

"Michael Barrett Jensen" <mbiwj001 (AT) sneakemail (DOT) com> wrote

Quote:
Hi,

I am wondering if this is possible... I have a cube concering the sales of
cars. The cube contains two dimensions

- Manufacturer
- Color
- Size

And two measures

- SalesPrice
- PurchasePrice

Now... I want to be able to select the cars that come from one or more
specific manufacturers OR have one or more specific colors. The way Analysis
Services usually works, if I pick one or more manufacturers and one or more
colors, I end up with the cars that are from these specific manufacturers
AND have these specific colors.

Is it possible?

Thanks in advance!

/Michael

Reply With Quote
  #4  
Old   
Michael Barrett Jensen
 
Posts: n/a

Default Re: OR-problem in Analysis Services - 05-07-2004 , 06:55 AM



Thanks Chris... That is an extremely enlightening thread! :-)

/Michael

"Chris Webb" <OnlyForPostingToNewsgroups (AT) hotmail (DOT) com> wrote

Quote:
In addition to Deepak's comments, you might also be interested in
reading the following thread:


http://groups.google.co.uk/groups?hl...%3D10%26sa%3DN




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.