dbTalk Databases Forums  

Newbie Need help on MDX

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


Discuss Newbie Need help on MDX in the microsoft.public.sqlserver.olap forum.



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

Default Newbie Need help on MDX - 07-14-2004 , 06:41 AM






I just wanted to know is it possible or any solution that if i had 2
dimension lets said dimenson a and dimension b.Both dimension is not a
calculated member

In sql i can have a query statement like
select total from sales where name='a' or product='b'

but can the MDX use or for the where clause.

select {total} from sales
where dimension a or dimension b

Any possible solution that i can get the same result like the sql
query statement if MDX cannot use or in where clause

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

Default Re: Newbie Need help on MDX - 07-14-2004 , 09:29 PM






Thanks Brian
The solution can be use but then if the current member cannot find
then it will give error and if the set didnt match also it give error.

ANother thing that i need to as if im doing this way

WiTH

MEMBER product.ProductFilter AS 'Aggregate (
{Filter([product].members, [product].CurrentMember.Name="a" OR
[product].CurrentMember.Name="b" OR [product].CurrentMember.Name="c"
OR [product].CurrentMember.Name="d") } )'

MEMBER store.StoreFilter AS 'Aggregate(
{Filter([store].Members,[store].CurrentMember.Name="storea" OR
[store].CurrentMember.Name="storeb")})'


Can i use the above member as OR in rows like the below statement you
mention???

select
{[Measures].[Unit Sales]} on columns,
filter ( [product].members * [store].members ,
product.currentmember is [drink] or store.currentmember is [CA] ) on
rows
from Sales



alextsh79 (AT) maxis (DOT) net.my (Alex) wrote in message news:<2fa6aa50.0407140341.3d9811c1 (AT) posting (DOT) google.com>...
Quote:
I just wanted to know is it possible or any solution that if i had 2
dimension lets said dimenson a and dimension b.Both dimension is not a
calculated member

In sql i can have a query statement like
select total from sales where name='a' or product='b'

but can the MDX use or for the where clause.

select {total} from sales
where dimension a or dimension b

Any possible solution that i can get the same result like the sql
query statement if MDX cannot use or in where clause

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.