![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello I was wondering if anyone could offer some advice on the following issues with SQL AS 2005: I have the following code and am trying to get Format_String to work properly. It works fine until I put a scope statement into the mix - after which format_string seems not to work. Other properties like back_color continue to work in MS Vis Studio browser. Anyone have any ideas as to why or how to get my format back? Regards jph --BASE RAW % CHANGE MEASURE CREATE MEMBER CURRENTCUBE.[MEASURES].[% Change] AS "NA", FORMAT_STRING = "#.#%;(#.#%);0.00", BACK_COLOR = 65535 /*Yellow*/, VISIBLE = 1 ; --FOR QUARTERS SCOPE( [Dates].[Year - Quarter - Month].[QUARTER].MEMBERS,[MEASURES].[% CHANGE] ); this = (closingperiod([dates].[year - quarter - month].[month]),measures.[raw % change]); END SCOPE; --FOR MONTHS SCOPE( [Dates].[Year - Quarter - Month].[MONTH].MEMBERS,[MEASURES].[% CHANGE] ); this = [MEASURES].[RAW % CHANGE]; END SCOPE; |
#3
| |||
| |||
|
|
Have you tried putting the format string inside the scope statment? I am not sure, but I am just wondering if it is pulling the format from the raw measure. eg. --BASE RAW % CHANGE MEASURE CREATE MEMBER CURRENTCUBE.[MEASURES].[% Change] AS "NA", FORMAT_STRING = "#.#%;(#.#%);0.00", BACK_COLOR = 65535 /*Yellow*/, VISIBLE = 1 ; --FOR QUARTERS SCOPE( [Dates].[Year - Quarter - Month].[QUARTER].MEMBERS,[MEASURES].[% CHANGE] ); this = (closingperiod([dates].[year - quarter - month].[month]),measures.[raw % change]); Format_String ( This ) = "#.#%;(#.#%);0.00" ; END SCOPE; --FOR MONTHS SCOPE( [Dates].[Year - Quarter - Month].[MONTH].MEMBERS,[MEASURES].[% CHANGE] ); this = [MEASURES].[RAW % CHANGE]; Format_String ( This ) = "#.#%;(#.#%);0.00" ; END SCOPE; |
#4
| |||
| |||
|
|
Thanks Works nicely. I scoured the docs for something like this - where would you find a reference to it? |
|
P.S. Any reason Excel 2003 does not take the formatting at all - no matter how it is specified? |
![]() |
| Thread Tools | |
| Display Modes | |
| |