dbTalk Databases Forums  

Cell Calculation

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


Discuss Cell Calculation in the microsoft.public.sqlserver.olap forum.



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

Default Cell Calculation - 12-25-2006 , 10:31 AM






I had imported a cube from AS 2000 to SSAS 2005
And one formula I have:

CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR '({Measures.[Days]}, [Calendar].[Calendar].[Day].Members)'
AS '1'

And what I hoping to get is only number of chosen days. In AS 2000 all
work well and neat, but not in SSAS 2005.

What the problem ?


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

Default Re: Cell Calculation - 12-25-2006 , 10:40 AM






try to use the scope statement:
scope({Measures.[Days]}, [Calendar].[Calendar].[Day].Members);
this = 1;
end scope;


"SignOff" <alerya (AT) gmail (DOT) com> wrote

Quote:
I had imported a cube from AS 2000 to SSAS 2005
And one formula I have:

CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR '({Measures.[Days]}, [Calendar].[Calendar].[Day].Members)'
AS '1'

And what I hoping to get is only number of chosen days. In AS 2000 all
work well and neat, but not in SSAS 2005.

What the problem ?


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

Default Re: Cell Calculation - 12-25-2006 , 10:50 AM



Is this right?
CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR 'scope({Measures.[Days]}, [Calendar].[Calendar].[Day].Members);
this = 1; end scope;'
AS '1'


"""Jeje ΠΙΣΑΜ(Α):
"""
Quote:
try to use the scope statement:
scope({Measures.[Days]}, [Calendar].[Calendar].[Day].Members);
this = 1;
end scope;


"SignOff" <alerya (AT) gmail (DOT) com> wrote in message
news:1167064313.400785.26950 (AT) h40g2000cwb (DOT) googlegroups.com...
I had imported a cube from AS 2000 to SSAS 2005
And one formula I have:

CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR '({Measures.[Days]}, [Calendar].[Calendar].[Day].Members)'
AS '1'

And what I hoping to get is only number of chosen days. In AS 2000 all
work well and neat, but not in SSAS 2005.

What the problem ?



Reply With Quote
  #4  
Old   
Jeje
 
Posts: n/a

Default Re: Cell Calculation - 12-25-2006 , 10:54 AM



no
replace create cell calculation etc by my statement.

CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR '({Measures.[Days]}, [Calendar].[Calendar].[Day].Members)'
AS '1'

becomes:
scope({Measures.[Days]}, [Calendar].[Calendar].[Day].Members);
this = 1;
end scope;


"SignOff" <alerya (AT) gmail (DOT) com> wrote

Quote:
Is this right?
CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR 'scope({Measures.[Days]}, [Calendar].[Calendar].[Day].Members);
this = 1; end scope;'
AS '1'


"""Jeje ΠΙΣΑΜ(Α):
"""
try to use the scope statement:
scope({Measures.[Days]}, [Calendar].[Calendar].[Day].Members);
this = 1;
end scope;


"SignOff" <alerya (AT) gmail (DOT) com> wrote in message
news:1167064313.400785.26950 (AT) h40g2000cwb (DOT) googlegroups.com...
I had imported a cube from AS 2000 to SSAS 2005
And one formula I have:

CREATE CELL CALCULATION CURRENTCUBE.[Days]
FOR '({Measures.[Days]}, [Calendar].[Calendar].[Day].Members)'
AS '1'

And what I hoping to get is only number of chosen days. In AS 2000 all
work well and neat, but not in SSAS 2005.

What the problem ?



Reply With Quote
  #5  
Old   
SignOff
 
Posts: n/a

Default Re: Cell Calculation - 12-25-2006 , 10:59 AM




I cant understand how to use the scope to get my calculated cell


Reply With Quote
  #6  
Old   
SignOff
 
Posts: n/a

Default Re: Cell Calculation - 12-26-2006 , 01:29 AM



Oh thanks a lot, I found. THanks for your post!


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.