dbTalk Databases Forums  

MDX ForeColor with character-measures

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


Discuss MDX ForeColor with character-measures in the microsoft.public.sqlserver.olap forum.



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

Default MDX ForeColor with character-measures - 10-09-2003 , 04:13 AM






I have create a calculatet member "Active Product" with

[Products].CurrentMember.Properties("Inactive")

Is there a solution in the CubeEditor in the Properties
pane for the property ForeColor, if the
[Measure].[Active Product]
has the value = 'Y' then 'Green' or value = 'N' Then 'Red'?

For numeric measures I can set the ForeColor with e.g.
IIF([Measures].[DB1 +/- Vorperiode] < 0 , 255,0)
but I don't know what's the syntacs for character-measures.

Many thanks for a solution.

Reply With Quote
  #2  
Old   
Matt Carroll [MS]
 
Posts: n/a

Default Re: MDX ForeColor with character-measures - 10-09-2003 , 01:15 PM






Use the VBA StrComp function. Here's an example:

WITH MEMBER measures.Foo as '"Y"', fore_color = 'Iif(StrComp(Measures.Foo,
"y")=0, 255, 0)'
select {measures.Foo} on 0
from sales
cell properties value, Formatted_value, fore_color

- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Reinfried Englmair" <reinfried.englmair (AT) c-bergmann (DOT) at> wrote

Quote:
I have create a calculatet member "Active Product" with

[Products].CurrentMember.Properties("Inactive")

Is there a solution in the CubeEditor in the Properties
pane for the property ForeColor, if the
[Measure].[Active Product]
has the value = 'Y' then 'Green' or value = 'N' Then 'Red'?

For numeric measures I can set the ForeColor with e.g.
IIF([Measures].[DB1 +/- Vorperiode] < 0 , 255,0)
but I don't know what's the syntacs for character-measures.

Many thanks for a solution.



Reply With Quote
  #3  
Old   
Reinfried Englmair
 
Posts: n/a

Default Re: MDX ForeColor with character-measures - 10-10-2003 , 01:48 AM



Thank You very much. It's perfect.Thank's once more.
Quote:
-----Original Message-----
Use the VBA StrComp function. Here's an example:

WITH MEMBER measures.Foo as '"Y"', fore_color = 'Iif
(StrComp(Measures.Foo,
"y")=0, 255, 0)'
select {measures.Foo} on 0
from sales
cell properties value, Formatted_value, fore_color

- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and
confers no rights.

"Reinfried Englmair" <reinfried.englmair (AT) c-bergmann (DOT) at
wrote in message
news:0b7d01c38e45$8d0d42d0$a101280a (AT) phx (DOT) gbl...
I have create a calculatet member "Active Product" with

[Products].CurrentMember.Properties("Inactive")

Is there a solution in the CubeEditor in the Properties
pane for the property ForeColor, if the
[Measure].[Active Product]
has the value = 'Y' then 'Green' or value = 'N'
Then 'Red'?

For numeric measures I can set the ForeColor with e.g.
IIF([Measures].[DB1 +/- Vorperiode] < 0 , 255,0)
but I don't know what's the syntacs for character-
measures.

Many thanks for a solution.


.


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.