dbTalk Databases Forums  

MDX Conditional logic problem

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


Discuss MDX Conditional logic problem in the microsoft.public.sqlserver.olap forum.



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

Default MDX Conditional logic problem - 06-02-2004 , 06:50 PM






Hi all,

I am trying to do employ the following logic:

If the currentmember product is a Line, then for all the
descendants of that current member take measure.wac% - .04

This is what I currently have in MDX

IIF([Product].currentmember is [Product].[Prod Desc Lev
5].&[Product].&[Seconds].&[Lines], [Measures].[WAC%] -
.04,0)

I'm trying to figure out how to add the Descendants of
Product to the true side of the equation.

Any help would be greatly appreciated.

Thanks,

Mark

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

Default RE: MDX Conditional logic problem - 06-02-2004 , 10:31 PM






Tr

iif (IsAncestor([Product].[Prod Desc Lev 5].&[Product].&[Seconds].&[Lines], [Product].currentmember),
[Measures].[WAC%] - .04, ...

----- Mark Frank wrote: ----

Hi all

I am trying to do employ the following logic

If the currentmember product is a Line, then for all the
descendants of that current member take measure.wac% - .0

This is what I currently have in MD

IIF([Product].currentmember is [Product].[Prod Desc Lev
5].&[Product].&[Seconds].&[Lines], [Measures].[WAC%]
.04,0

I'm trying to figure out how to add the Descendants of
Product to the true side of the equation

Any help would be greatly appreciated

Thanks

Mar


Reply With Quote
  #3  
Old   
Mark Frank
 
Posts: n/a

Default RE: MDX Conditional logic problem - 06-03-2004 , 11:49 AM




Worked like a charm!

Thanks,

Mark


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

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.