dbTalk Databases Forums  

MDX % of total Math

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


Discuss MDX % of total Math in the microsoft.public.sqlserver.olap forum.



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

Default MDX % of total Math - 06-27-2006 , 05:36 PM






Hi all,

Does anyone have an example of how to replicate a pivot table % of total?

Lets say I have Regions across the columns axis and Products on the rows. I
hoping to get a calc member that replicates the PT % of total as a calc
member. The reason for it is to allow for nesting a dimension in a pivot
table where the % of breaks down.

Thanks in advance!

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

Default Re: MDX % of total Math - 06-28-2006 , 06:13 PM






Can you apply the approach in this MDX code sample?

http://www.tomchester.net/articlesdo...desamples.html
Quote:
PASS December 2002

Pushing the MDX Envelope

Code Samples

Email: public (AT) tomchester (DOT) net
...
Flexible Percent of Total

Works with any set and any measure (assumes measure being operated upon
is in first column)
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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

Default Re: MDX % of total Math - 06-28-2006 , 06:22 PM



Hi Deepak,

Thanks for the reply, I actually managed to get it to work with
tuple.currentmember/all.

Great to see Tom's work too, far more elegant. Once worked with him =)

"Deepak Puri" wrote:

Quote:
Can you apply the approach in this MDX code sample?

http://www.tomchester.net/articlesdo...desamples.html

PASS December 2002

Pushing the MDX Envelope

Code Samples

Email: public (AT) tomchester (DOT) net
...
Flexible Percent of Total

Works with any set and any measure (assumes measure being operated upon
is in first column)
...



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.