dbTalk Databases Forums  

Re: PivotTable x Calculated Members

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


Discuss Re: PivotTable x Calculated Members in the microsoft.public.sqlserver.olap forum.



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

Default Re: PivotTable x Calculated Members - 03-14-2005 , 04:48 PM






Assuming your ParallelPeriod() is working on the dimension that you
are using to dice on rows, it makes sense that you would not see
anything in the Grand Total.

ParallelPeriod() will require a time member to be selected. There is
no time member for the tuple on the Grand Total line (or, I should
say, the time member is (All)). The calculation results in null.

David




On Mon, 14 Mar 2005 11:45:10 -0300, "Cristiano Moraes da Silva"
<cristiano (AT) dbccompany (DOT) com.br> wrote:

Quote:
Hi,
I have this calculated member in a PivotTable

Date xxx Sales Sales in last year (ParallelPeriod)
2000 200 185
2002 350 311
Grand Total 550 ------

I need to show Grand Total for "sales in last year" ....Is this a limitation
of Pivottable ??

Thanks in advance,
Cristiano
=================================
Cristiano Moraes da Silva
Analista de Sistemas
DBC Database Company
Porto Alegre - RS - Brasil
+55 513330 7777
cristiano (AT) dbccompany (DOT) com.br
www.dbccompany.com.br




Reply With Quote
  #2  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default Re: PivotTable x Calculated Members - 03-15-2005 , 05:26 AM






Ok David, I know that, but i want to get this result:

Date xxx Sales Sales in last year (ParallelPeriod)
2000 200 185
2002 350 311
Grand Total 550 496

I want to display in Grand Total: SUM ( Sales in 1999 + Sales in 2001) = 496

Cristiano.


"David Beavon" <dbeavon (AT) ufpi (DOT) com> wrote

Quote:
Assuming your ParallelPeriod() is working on the dimension that you
are using to dice on rows, it makes sense that you would not see
anything in the Grand Total.

ParallelPeriod() will require a time member to be selected. There is
no time member for the tuple on the Grand Total line (or, I should
say, the time member is (All)). The calculation results in null.

David



Reply With Quote
  #3  
Old   
Cristiano Moraes da Silva
 
Posts: n/a

Default Re: PivotTable x Calculated Members - 03-15-2005 , 06:58 AM



I solve with this calculatedMember:

iif (MemberToStr( [Time].CurrentMember) = "[Time].[All Time]",
SUM( StrToSet("Axis(0)"), [Measures].[Sales last year] ) ,
[Measures].[Sales last year] )

But not works when the user move [Time] dimension to Filter Axis!
Cristiano.


"Cristiano Moraes da Silva" <cristiano (AT) dbccompany (DOT) com.br> wrote

Quote:
Ok David, I know that, but i want to get this result:

Date xxx Sales Sales in last year (ParallelPeriod)
2000 200 185
2002 350 311
Grand Total 550 496

I want to display in Grand Total: SUM ( Sales in 1999 + Sales in 2001) =
496

Cristiano.



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.