---
title: "FormatString Element (ASSL) | Microsoft Docs"
ms.custom: ""
ms.date: "03/06/2017"
ms.prod: "sql-server-2016"
ms.reviewer: ""
ms.suite: ""
ms.technology:
- "analysis-services"
- "docset-sql-devref"
ms.tgt_pltfrm: ""
ms.topic: "reference"
apiname:
- "FormatString Element"
apilocation:
- "http://schemas.microsoft.com/analysisservices/2003/engine"
apitype: "Schema"
applies_to:
- "SQL Server 2016 Preview"
f1_keywords:
- "FormatString"
helpviewer_keywords:
- "FormatString element"
ms.assetid: 7b996221-936e-4f36-a3a8-676eb9869c55
caps.latest.revision: 34
author: "Minewiskan"
ms.author: "owend"
manager: "erikre"
---
# FormatString Element (ASSL)
Describes the display format for a [CalculationProperty](../../../analysis-services/scripting/objects/calculationproperty-element-assl.md) element or a [Measure](../../../analysis-services/scripting/objects/measure-element-assl.md) element.
## Syntax
```xml
...
...
...
```
## Element Characteristics
|Characteristic|Description|
|--------------------|-----------------|
|Data type and length|String|
|Default value|None|
|Cardinality|0-1: Optional element that can occur once and only once.|
## Element Relationships
|Relationship|Element|
|------------------|-------------|
|Parent elements|[CalculationProperty](../../../analysis-services/scripting/objects/calculationproperty-element-assl.md), [Measure](../../../analysis-services/scripting/objects/measure-element-assl.md)|
|Child elements|None|
## Remarks
The **FormatString** property contains a Multidimensional Expressions (MDX) expression. In the case of **CalculationProperty** elements, it applies to elements with a [CalculationType](../../../analysis-services/scripting/properties/calculationtype-element-assl.md) of *Member* or *Cells*.
The elements that correspond to the parents of **FormatString** in the Analysis Management Objects (AMO) object model are and .
## See Also
[CalculationProperties Element (ASSL)](../../../analysis-services/scripting/collections/calculationproperties-element-assl.md)
[MdxScript Element (ASSL)](../../../analysis-services/scripting/objects/mdxscript-element-assl.md)
[MdxScripts Element (ASSL)](../../../analysis-services/scripting/collections/mdxscripts-element-assl.md)
[Properties (ASSL)](../../../analysis-services/scripting/properties/properties-assl.md)