UseFormatstringAttribute defines the format of each Metric value to control the display of the metric value to the user, so as to improve the user friendliness of the measurement value in the multi-dimensional dataset. In this task, you specify the format of the currency and percentage measurement values in the analysis services tutorial cube.
Modify the measurement value of a cube
-
-
Switch to"Multidimensional Dataset structure"Tab, in"Metric value"Expand in the pane"Internet sales"Measure Value group, right-click"Order Quantity"And then click"Attribute".
-
-
In the Properties window, click"Hide automatically"To prevent the "properties" window from opening.
When the "properties" window is open, it is easier to change the attributes of multiple items in the cube.
-
In the Properties windowFormatstringList, select#,#.
-
-
In"Multidimensional Dataset structure"On the toolbar of the tab, click"Display metric value grid".
Change to grid view so that you can select multiple measurement values at the same time.
-
Press ctrl to select multiple metric values. You can select the following metric values:
- Unit Price
- Extended amount
- Discount Amount
- Product Standard Cost
- Total product cost
- Sales amount
- Tax AMT
- Freight
Displays"Multidimensional Dataset structure"Tab.
-
-
In the Properties windowFormatstringList, selectCurrency.
-
In the drop-down list box at the top of the "properties" window, selectUnit price discount pctMeasure Value, and thenFormatstringSelect from the listPercent.
-
-
In the "properties" window, SetUnit price discount pctMeasure ValueNameProperty changed"Unit price discount percentage".
-
-
In"Metric value"In the pane, clickTax AMTAnd then change the measurement value nameTax Amount.
This method is used to modify the measurement value name andNameThe attributes are the same.
-
In the Properties window, click"Hide automatically"To hide the "properties" window, and then"Multidimensional Dataset structure"Click"Display metric tree".
-
-
In business intelligence development studio"Generate"Click"Deployment Analysis Services tutorial".
Because you have configured this project as incremental deployment, only the changes made in this project since the last deployment will be deployed to the Analysis Services instance.
-
-
After the deployment is completed, click"Browser"Tab.
Bi development studio detects that the cube has been updated and prompts you to reconnect to display the updated cube.
-
In"Browser"On the toolbar of the tab, click"Reconnect".
The dollar value of each sales quota value is displayed in the form of the currency amount (with the appropriate format for your region) in"Data"Pane.
-
-
In"Metadata"In the pane, expand"Metric value","Internet sales", Right-click"Order Quantity"And then click"Add to data area".
Note that the format of the new measurement value has been set to an integer, as shown in.
-
-
In"File"Click"Save all".
This will save the changes you have made in the Analysis Services Tutorial Project so far. You can stop the tutorial here as needed and continue later.
specify the formatstring and name attribute values of each Metric value, you have successfully improved the user friendliness of measurement values in the analysis services tutorial cube.