--- title: "AttributeHierarchyEnabled Element (ASSL) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "analysis-services" - "docset-sql-devref" ms.tgt_pltfrm: "" ms.topic: "reference" apiname: - "AttributeHierarchyEnabled Element" apilocation: - "http://schemas.microsoft.com/analysisservices/2003/engine" apitype: "Schema" applies_to: - "SQL Server 2016 Preview" f1_keywords: - "AttributeHierarchyEnabled" helpviewer_keywords: - "AttributeHierarchyEnabled element" ms.assetid: 1e95307f-530e-4e98-a0e1-2b0462d330a3 caps.latest.revision: 38 author: "Minewiskan" ms.author: "owend" manager: "erikre" --- # AttributeHierarchyEnabled Element (ASSL) Determines whether an attribute hierarchy is enabled for the attribute. ## Syntax ```xml ... ... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |Data type and length|Boolean| |Default value|**True**| |Cardinality|0-1: Optional element that can occur once and only once.| ## Element Relationships |Relationship|Element| |------------------|-------------| |Parent element|[CubeAttribute](../../../analysis-services/scripting/data-type/cubeattribute-data-type-assl.md), [DimensionAttribute](../../../analysis-services/scripting/data-type/dimensionattribute-data-type-assl.md)| |Child elements|None| ## Remarks The **AttributeHierarchyEnabled** element determines whether an attribute hierarchy is generated by [!INCLUDE[msCoName](../../../includes/msconame-md.md)] [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] [!INCLUDE[ssASnoversion](../../../includes/ssasnoversion-md.md)] for the attribute. If the attribute hierarchy is not enabled, then the attribute cannot be used in a user-defined hierarchy, nor can the attribute hierarchy be referenced in Multidimensional Expressions (MDX) statements. The elements that correspond to the parents of **AttributeHierarchyEnabled** in the Analysis Management Objects (AMO) object model are and . ## See Also [AttributeHierarchyVisible Element (ASSL)](../../../analysis-services/scripting/properties/attributehierarchyvisible-element-assl.md) [Properties (ASSL)](../../../analysis-services/scripting/properties/properties-assl.md)