dbTalk Databases Forums  

Question on Cell Calculation

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


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



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

Default Question on Cell Calculation - 10-22-2004 , 02:26 PM






Hello everyone,

i would like to have my cell background color black if one of the LEAVES
are less than 11 000.

here a sample :

WITH CELL CALCULATION [AlertTest] FOR '([Store].[Store Name].MEMBERS)'
AS 'CalculationPassValue (Store.CurrentMember, 0)', CONDITION =
'CalculationPassValue (([Store].CurrentMember,[Measures].[Unit Sales]), 0) <
11000', BACK_COLOR = '0',FORE_COLOR = '2451541', FONT_FLAGS = '3'
SELECT {[Measures].[Unit Sales]} ON COLUMNS,
[Store].[Store Name].MEMBERS ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

This is working now my question is : Is it possible to have the same result
at higher level ... are an example

WITH CELL CALCULATION [AlertTest] FOR '([Store].[Store Name].MEMBERS)'
AS 'CalculationPassValue (Store.CurrentMember, 0)', CONDITION =
'CalculationPassValue (([Store].CurrentMember,[Measures].[Unit Sales]), 0) <
11000', BACK_COLOR = '0',FORE_COLOR = '2451541', FONT_FLAGS = '3'
SELECT {[Measures].[Unit Sales]} ON COLUMNS,
[Store].Children ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

I would like to see the cell where and store name UnitSales is less than 11
000 i try to change the CONDITION For CONDITION = 'CalculationPassValue
(([Store].CurrentMember.Leaves,[Measures].[Unit Sales]), 0) < 11000'

but it did'nt work


Thanks alots

Best Regards,
Patrice Lamarche



Reply With Quote
  #2  
Old   
Patrice Lamarche
 
Posts: n/a

Default Re: Question on Cell Calculation - 10-22-2004 , 02:35 PM







Hello, i write [Store].CurrentMember.Leaves but i use the descendants
fonction.

Patrice Lamarche
"Patrice Lamarche" <patrice_lamarche (AT) gcomnitech (DOT) com.nospam> a écrit dans le
message de news:O3Im30GuEHA.3860 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
Hello everyone,

i would like to have my cell background color black if one of the
LEAVES
are less than 11 000.

here a sample :

WITH CELL CALCULATION [AlertTest] FOR '([Store].[Store Name].MEMBERS)'
AS 'CalculationPassValue (Store.CurrentMember, 0)', CONDITION =
'CalculationPassValue (([Store].CurrentMember,[Measures].[Unit Sales]), 0)

11000', BACK_COLOR = '0',FORE_COLOR = '2451541', FONT_FLAGS = '3'
SELECT {[Measures].[Unit Sales]} ON COLUMNS,
[Store].[Store Name].MEMBERS ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

This is working now my question is : Is it possible to have the same
result
at higher level ... are an example

WITH CELL CALCULATION [AlertTest] FOR '([Store].[Store Name].MEMBERS)'
AS 'CalculationPassValue (Store.CurrentMember, 0)', CONDITION =
'CalculationPassValue (([Store].CurrentMember,[Measures].[Unit Sales]), 0)

11000', BACK_COLOR = '0',FORE_COLOR = '2451541', FONT_FLAGS = '3'
SELECT {[Measures].[Unit Sales]} ON COLUMNS,
[Store].Children ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

I would like to see the cell where and store name UnitSales is less than
11
000 i try to change the CONDITION For CONDITION = 'CalculationPassValue
(([Store].CurrentMember.Leaves,[Measures].[Unit Sales]), 0) < 11000'

but it did'nt work


Thanks alots

Best Regards,
Patrice Lamarche





Reply With Quote
  #3  
Old   
Patrice Lamarche
 
Posts: n/a

Default Re: Question on Cell Calculation - 10-22-2004 , 02:57 PM



I got my answer

here it is!

WITH CELL CALCULATION [AlertTest] FOR '({[Store].MEMBERS},{Measures.[Unit
Sales]})'
AS 'CalculationPassValue ([Store].CurrentMember, 0)', CONDITION =
'CalculationPassValue (MIN(DESCENDANTS([Store].CurrentMember,[Store].[Store
Name]),[Measures].[Unit Sales]), 0) < 11000', BACK_COLOR = '0',FORE_COLOR =
'2451541', FONT_FLAGS = '3'
SELECT {[Measures].members} ON COLUMNS,
[Store].children ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

Patrice Lamarche

"Patrice Lamarche" <patrice_lamarche (AT) gcomnitech (DOT) com.nospam> a écrit dans le
message de news:O3Im30GuEHA.3860 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
Hello everyone,

i would like to have my cell background color black if one of the
LEAVES
are less than 11 000.

here a sample :

WITH CELL CALCULATION [AlertTest] FOR '([Store].[Store Name].MEMBERS)'
AS 'CalculationPassValue (Store.CurrentMember, 0)', CONDITION =
'CalculationPassValue (([Store].CurrentMember,[Measures].[Unit Sales]), 0)

11000', BACK_COLOR = '0',FORE_COLOR = '2451541', FONT_FLAGS = '3'
SELECT {[Measures].[Unit Sales]} ON COLUMNS,
[Store].[Store Name].MEMBERS ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

This is working now my question is : Is it possible to have the same
result
at higher level ... are an example

WITH CELL CALCULATION [AlertTest] FOR '([Store].[Store Name].MEMBERS)'
AS 'CalculationPassValue (Store.CurrentMember, 0)', CONDITION =
'CalculationPassValue (([Store].CurrentMember,[Measures].[Unit Sales]), 0)

11000', BACK_COLOR = '0',FORE_COLOR = '2451541', FONT_FLAGS = '3'
SELECT {[Measures].[Unit Sales]} ON COLUMNS,
[Store].Children ON ROWS
FROM Sales

CELL PROPERTIES VALUE, FORMATTED_VALUE, FORE_COLOR, BACK_COLOR,
FONT_FLAGS

I would like to see the cell where and store name UnitSales is less than
11
000 i try to change the CONDITION For CONDITION = 'CalculationPassValue
(([Store].CurrentMember.Leaves,[Measures].[Unit Sales]), 0) < 11000'

but it did'nt work


Thanks alots

Best Regards,
Patrice Lamarche





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.