Formatting "scoped" calculated members

Hi,

How do I format calculated members that have been modified in a Scope-statement

Example:

CREATE MEMBER CURRENTCUBE.Test1
AS NULL,
FORMAT_STRING = "#,#.00",
NON_EMPTY_BEHAVIOR = { [Measure1], [Measure2] },
VISIBLE = 1 ;

SCOPE ([Company].[Company].children,[Measures].[Test1]);
This = [Measures].[Measure1]/[Measures].[Measure2];
END SCOPE;

My calculated member "Test1" looses its formatting in the Scope-statement and is therefore no longer formatted as "#,#.00". How can I change this




Answer this question

Formatting "scoped" calculated members

  • wang ya zheng

    Try the following:

    CREATE MEMBER CURRENTCUBE.Test1
    AS NULL,
    FORMAT_STRING = "#,#.00",
    NON_EMPTY_BEHAVIOR = { [Measure1], [Measure2] },
    VISIBLE = 1 ;

    SCOPE ([Company].[Company].children,[Measures].[Test1]);
    This = [Measures].[Measure1]/[Measures].[Measure2];
    FORMAT_STRING(THIS) = '#,#.00';
    END SCOPE;



  • Formatting "scoped" calculated members