Member group names are generated automatically when the member groups are created. Unless you specify a naming template, the default naming template is used. You can change this method of naming by specifying a naming template in the Format option for the NameColumn property of an attribute. Different naming templates can be redefined for every language specified in the Translations collection of the column binding that was used for the NameColumn property of the attribute.
The Format setting uses the following string expression to define the naming template:
<Naming template> ::= <First definition> [;<Intermediate definition>;<Last definition>]
<First definition> ::= <Name expression>
<Intermediate defintion> ::= <Name expression>
<Last definition> ::= <Name expression>
The <First definition> parameter applies only to the first or only member group generated by the discretization method. If the optional parameters <Intermediate definition> and <Last definition> are not provided, the <First definition> parameter is used for all measure groups generated for that attribute.
The <Last definition> parameter applies only to the last member group generated by the discretization method.
The <Intermediate bucket name> parameter applies to every member group other than the first or last member group generated by the discretization method. If two or fewer member groups are generated, this parameter is ignored.
The <Bucket name> parameter is a string expression that can incorporate a set of variables to represent member or member group information as part of the name of the member group:
|
Variable
|
Description
|
|---|
|
%{First bucket member}
|
The member name of the first member to be included in the current member group.
|
|
%{Last bucket member}
|
The member name of the last member to be included in the current member group.
|
|
%{Previous bucket last member}
|
The member name of the last member assigned to the previous member group.
|
|
%{Next bucket first member}
|
The member name of the first member to be assigned to the next member group.
|
|
%{Bucket Min}
|
The minimum value of the members to be assigned to the current member group.
|
|
%{Bucket Max}
|
The maximum value of the members to be assigned to the current member group.
|
|
%{Previous Bucket Max}
|
The maximum value of the members to be assigned to the previous member group.
|
|
%{Next Bucket Min}
|
The minimum value of the members to be assigned to the next member group.
|
The default naming template is "%{First bucket member} - %{Last bucket member}", to provide compatibility with earlier versions of Analysis Services.
Note: |
|---|
|
To include a semicolon (;) as a literal character in the naming template, prefix it with the percent (%) character.
|
Example
The following string expression could be used to classify the Yearly Income attribute of the Customer dimension in the Adventure Works DW sample Analysis Services database, where the Yearly Income attribute uses member grouping:
"Less than %{Next Bucket Min};Between %{First bucket member} and %{Last bucket member};Greater than %{Previous Bucket Max}"