Article ID: 950598 - Last Review: April 16, 2008 - Revision: 1.1 Description of the LANGUAGE cell property in SQL Server 2005 Analysis ServicesOn This PageSUMMARYMicrosoft SQL Server 2005 Analysis Services introduces the LANGUAGE
cell property in addition to the VALUE cell property and the FORMAT_STRING cell
property. In SQL Server 2005 Analysis Services, the FORMATTED_VALUE cell
property is built on the following cell properties:
MORE INFORMATIONHow SQL Server 2005 Analysis Services determines the LANGUAGE cell property for an objectYou can explicitly specify the LANGUAGE cell property on objects such as dimensions or cubes. If you do not specify the LANGUAGE cell property on an object, the LANGUAGE cell property is inherited from the parent of the object.If you do not specify the LANGUAGE cell property on a cube, the LANGUAGE cell property of the cube is inherited from the database that contains the cube. If you do not specify the LANGUAGE cell property on the database, the LANGUAGE cell property is inherited from the server object. For example, you have a cube that is located on a English (United States) version of SQL Server 2005 Analysis Services. By default, the value of the LANGUAGE cell property of the cube is 1033. When you run a Multidimensional Expressions (MDX) query but you do not specify the LANGUAGE cell property, the MDX query uses the LANGUAGE cell property of the cube against which you run the MDX query. However, when you run the "Sample 1" MDX query against the Adventure works cube of the AdventureWorks Analysis Services Project Enterprise Edition sample project, the query output is displayed as the Chinese Yuan symbol. This is because the LANGUAGE cell property is explicitly specified to 2052. 2052 is the locale identifier (LCID) for the Chinese - China locale. Sample 1 http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=4004
(http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=4004)
How to use MDX scripts to control the LANGUAGE cell propertyYou can use MDX scripts in cubes to control the LANGUAGE cell property. For example, you can use an MDX script that resembles the "Sample 2" MDX script.Sample 2 Sample 3 Sample 4 Additionally, you can update the "Sample 4" MDX query to display the output in British pounds (GBP). To do this, apply a slice on the relevant member of the Reporting Currency dimension. For example, you use the following "Sample 5" MDX query. Sample 5 How to display the output of a calculated member in a specific currencyIf you want to display the output of a calculated member in a specific currency, you must explicitly specify the LANGUAGE cell property. The LANGAUGE cell property for calculated members is not inherited from the query context. If you rewrite the "Sample 5" MDX query to resemble the following example, you obtain different result.Sample 6 This behavior occurs because you did not specify the LANGUAGE cell property in the definition of the calculated member. Therefore, the LANGUAGE cell property is inherited from the default LANGUAGE cell property of the Reporting Currency dimension. Additionally, the default LANGUAGE cell property of the Reporting Currency dimension is U.S. dollars. If the "Sample 3" MDX script does not exist, SQL Server 2005 Analysis Services determine the LANGUAGE cell property of the returned cell based on the order of the following objects:
What to consider when you try to specify a language for calculated membersSQL Server 2005 Analysis Services can determine the actual numeric currency conversion for calculated members from the query context. However, SQL Server 2005 Analysis Services cannot determine the value of the LANGUAGE cell property or of the currency symbol for calculated members from the query context.You must specify the LANGUAGE cell property if you want to obtain a nondefault currency symbol. If you do not specify the LANGUAGE cell property, the numeric value of the cell value and the currency symbol of the cell value may not match.
| Article Translations
|
Back to the top
