dbTalk Databases Forums  

Issues with Calculated Cells

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


Discuss Issues with Calculated Cells in the microsoft.public.sqlserver.olap forum.



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

Default Issues with Calculated Cells - 12-04-2003 , 12:03 PM






I am trying to use Calculated Cells but am encountering errors.
Here's the descrption:
I have a Dimension hierarchy that has Members like:
Losses
Loss Paid
Current Loss


Categories
Cat Loss Paid

Now I want to add Loss Paid and Cat Loss Paid by Calculated Cells and
display the sum in Loss Paid. But whenever I create a calculated Cell
I get an #ERR.
If I create a Calculated Member then it works fine but I need
calculated Cells.

Please let me know the best way to resolve this and I donot need
Calculated Members.


Thanks

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Issues with Calculated Cells - 12-04-2003 , 12:37 PM






Care to post the formula?


tom @ the domain below
www.tomchester.net


"Narayan" <pnagar (AT) hotmail (DOT) com> wrote

Quote:
I am trying to use Calculated Cells but am encountering errors.
Here's the descrption:
I have a Dimension hierarchy that has Members like:
Losses
Loss Paid
Current Loss


Categories
Cat Loss Paid

Now I want to add Loss Paid and Cat Loss Paid by Calculated Cells and
display the sum in Loss Paid. But whenever I create a calculated Cell
I get an #ERR.
If I create a Calculated Member then it works fine but I need
calculated Cells.

Please let me know the best way to resolve this and I donot need
Calculated Members.


Thanks



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

Default Re: Issues with Calculated Cells - 12-04-2003 , 01:11 PM



In the MDX Builder I am adding the two members as:
[Results].&[300001001]+[Results].&[400003300]

which is Losses Paid +Cat Loss Paid

----- Tom Chester wrote: -----

Care to post the formula?


tom @ the domain below
www.tomchester.net


"Narayan" <pnagar (AT) hotmail (DOT) com> wrote

Quote:
I am trying to use Calculated Cells but am encountering errors.
Here's the descrption:
I have a Dimension hierarchy that has Members like:
Losses
Loss Paid
Current Loss
Categories
Cat Loss Paid
Now I want to add Loss Paid and Cat Loss Paid by Calculated Cells and
display the sum in Loss Paid. But whenever I create a calculated Cell
I get an #ERR.
If I create a Calculated Member then it works fine but I need
calculated Cells.
Please let me know the best way to resolve this and I donot need
Calculated Members.
Thanks




Reply With Quote
  #4  
Old   
Tom Chester
 
Posts: n/a

Default Re: Issues with Calculated Cells - 12-04-2003 , 01:51 PM



Try this:

CalculationPassValue(
([Results].&[300001001]), -1, Relative)) +
CalculationPassValue(
([Results].&[400003300]), -1, Relative))

(Syntax not checked.)

tom @ the domain below
www.tomchester.net


"PNG" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
In the MDX Builder I am adding the two members as:
[Results].&[300001001]+[Results].&[400003300]

which is Losses Paid +Cat Loss Paid

----- Tom Chester wrote: -----

Care to post the formula?


tom @ the domain below
www.tomchester.net


"Narayan" <pnagar (AT) hotmail (DOT) com> wrote in message
news:973d7a2c.0312041003.1b8b3090 (AT) posting (DOT) google.com...
I am trying to use Calculated Cells but am encountering errors.
Here's the descrption:
I have a Dimension hierarchy that has Members like:
Losses
Loss Paid
Current Loss
Categories
Cat Loss Paid
Now I want to add Loss Paid and Cat Loss Paid by Calculated Cells
and
display the sum in Loss Paid. But whenever I create a calculated
Cell
I get an #ERR.
If I create a Calculated Member then it works fine but I need
calculated Cells.
Please let me know the best way to resolve this and I donot need
Calculated Members.
Thanks






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

Default Re: Issues with Calculated Cells - 12-05-2003 , 08:31 AM



Hi To
This does not help as it only gives the SUM of Losses Piad (300001001) ; It does not sum up Losses Paid +Cat Loss Pai

Thank


----- Tom Chester wrote: ----

Try this

CalculationPassValue
([Results].&[300001001]), -1, Relative))
CalculationPassValue
([Results].&[400003300]), -1, Relative)

(Syntax not checked.

tom @ the domain belo
www.tomchester.ne


"PNG" <anonymous (AT) discussions (DOT) microsoft.com> wrote in messag
news:339FC569-F559-44A5-831A-F784B59DB73C (AT) microsoft (DOT) com..
Quote:
In the MDX Builder I am adding the two members as
[Results].&[300001001]+[Results].&[400003300
which is Losses Paid +Cat Loss Pai
----- Tom Chester wrote: ----
Care to post the formula
tom @ the domain belo
www.tomchester.ne
"Narayan" <pnagar (AT) hotmail (DOT) com> wrote in messag
news:973d7a2c.0312041003.1b8b3090 (AT) posting (DOT) google.com..
I am trying to use Calculated Cells but am encountering errors
Here's the descrption
I have a Dimension hierarchy that has Members like
Losse
Loss Pai
Current Los
Categorie
Cat Loss Pai
Now I want to add Loss Paid and Cat Loss Paid by Calculated Cell
an
display the sum in Loss Paid. But whenever I create a calculate
Cel
I get an #ERR
If I create a Calculated Member then it works fine but I nee
calculated Cells
Please let me know the best way to resolve this and I donot nee
Calculated Members
Thank


Reply With Quote
  #6  
Old   
Tom Chester
 
Posts: n/a

Default Re: Issues with Calculated Cells - 12-05-2003 , 12:02 PM



This is merely your formula wrapped inside CalculationPassValue.

tom @ the domain below
www.tomchester.net


"PNG" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi Tom
This does not help as it only gives the SUM of Losses Piad (300001001) ;
It does not sum up Losses Paid +Cat Loss Paid


Thanks



----- Tom Chester wrote: -----

Try this:

CalculationPassValue(
([Results].&[300001001]), -1, Relative)) +
CalculationPassValue(
([Results].&[400003300]), -1, Relative))

(Syntax not checked.)

tom @ the domain below
www.tomchester.net


"PNG" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:339FC569-F559-44A5-831A-F784B59DB73C (AT) microsoft (DOT) com...
In the MDX Builder I am adding the two members as:
[Results].&[300001001]+[Results].&[400003300]
which is Losses Paid +Cat Loss Paid
----- Tom Chester wrote: -----
Care to post the formula?
tom @ the domain below
www.tomchester.net
"Narayan" <pnagar (AT) hotmail (DOT) com> wrote in message
news:973d7a2c.0312041003.1b8b3090 (AT) posting (DOT) google.com...
I am trying to use Calculated Cells but am encountering errors.
Here's the descrption:
I have a Dimension hierarchy that has Members like:
Losses
Loss Paid
Current Loss
Categories
Cat Loss Paid
Now I want to add Loss Paid and Cat Loss Paid by Calculated Cells
and
display the sum in Loss Paid. But whenever I create a calculated
Cell
I get an #ERR.
If I create a Calculated Member then it works fine but I need
calculated Cells.
Please let me know the best way to resolve this and I donot need
Calculated Members.
Thanks




Reply With Quote
  #7  
Old   
PNG
 
Posts: n/a

Default Issues with Calculated Cells - 12-05-2003 , 12:36 PM



Hi To
The problem is that the column Cat Loss Paid is actually a Calculated Cell and its calculation is also based on LOsses Paid. Therefore whenever I try this formula it gives me the value of Losses Paid ONLY and the value of CAT Losses Paid is ZERO.
Please let me know what's the cause of this

Thank


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

Default Re: Issues with Calculated Cells - 12-05-2003 , 10:47 PM



Since the value of Cat Loss Paid is also a Calculated Cell, this value
will not be finalized in the previous pass. Instead, you should be able
to use the current pass value:

CalculationPassValue(
([results].&[300001001]), -1, Relative)) +
([results].&[400003300])

However, since Cat Loss Paid is (presumably) calculated from the
original value of Losses Paid in the previous pass (otherwise, there is
infinite recursion), Cat Loss Paid must also be defined using prev. pass
for Losses Paid, ie:

CalculationPassValue(
([results].&[300001001]), -1, Relative))


- Deepak

*** Sent via Developersdex http://www.developersdex.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.