{"id":1925,"date":"2026-09-08T09:34:55","date_gmt":"2026-09-08T09:34:55","guid":{"rendered":"https:\/\/entri.app\/explore\/?post_type=curriculum&#038;p=1925"},"modified":"2026-09-08T09:39:17","modified_gmt":"2026-09-08T09:39:17","slug":"hierarchy-in-power-bi","status":"publish","type":"curriculum","link":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/","title":{"rendered":"Hierarchy in Power BI"},"content":{"rendered":"<h2>What Is a Hierarchy in Power BI?<\/h2>\n<p>A hierarchy in Power BI groups related fields \u2014 such as Year &gt; Quarter &gt; Month &gt; Day, or Country &gt; State &gt; City \u2014 into a single drillable unit in the Fields pane. Hierarchies enable drill-down and drill-up within visuals, letting users explore data at different levels without separate charts for each level.<\/p>\n<h2>How to Create a Hierarchy in Power BI<\/h2>\n<p>Two ways to create a hierarchy in Power BI Desktop:<\/p>\n<ul>\n<li><b><\/b><strong><b>Drag-and-drop: <\/b><\/strong>In the Fields pane, drag one field (e.g., Month) onto another (e.g., Year). Power BI creates a hierarchy. Continue dragging to add levels.<\/li>\n<li><b><\/b><strong><b>Right-click &gt; Create Hierarchy: <\/b><\/strong>Right-click a field, select Create Hierarchy. Then right-click other fields and choose Add to Hierarchy.<\/li>\n<\/ul>\n<h2>How to Delete a Date Hierarchy in Power BI<\/h2>\n<p>Power BI auto-generates a date hierarchy for every date column. To remove: File &gt; Options &gt; Current File &gt; Data Load, uncheck Auto Date\/Time. Recommended if you have your own Date table.<\/p>\n<h2>Data Hierarchy Types and Examples<\/h2>\n<ul>\n<li><b><\/b><strong><b>Time: <\/b><\/strong>Year &gt; Quarter &gt; Month &gt; Week &gt; Day \u2014 most common, for date drill-down.<\/li>\n<li><b><\/b><strong><b>Geographic: <\/b><\/strong>Country &gt; State &gt; City \u2014 for map visuals.<\/li>\n<li><b><\/b><strong><b>Organizational: <\/b><\/strong>CEO &gt; VP &gt; Director &gt; Manager &gt; Employee \u2014 for org charts.<\/li>\n<li><b><\/b><strong><b>Product: <\/b><\/strong>Category &gt; Subcategory &gt; Product \u2014 for sales analysis.<\/li>\n<\/ul>\n<h2>Hierarchy Chart and Hierarchy Visual<\/h2>\n<p>Any visual supporting categories \u2014 bar, line, table, matrix \u2014 can display a hierarchy. Drag the hierarchy into the Axis or Rows well. Drill icons appear in the visual header. For org hierarchies, use the Org Chart visual from AppSource or the Decomposition Tree.<\/p>\n<h2>Hierarchy Slicer in Power BI<\/h2>\n<p>The built-in slicer doesn&#8217;t support hierarchical drill-down. Install the Hierarchy Slicer custom visual from AppSource for a tree-style expandable slicer. Users expand Category &gt; Subcategory &gt; Product within the slicer itself.<\/p>\n<h2>Power BI Filter Hierarchy Order<\/h2>\n<p>Filters follow precedence: Report-level (all pages) &gt; Page-level (one page) &gt; Visual-level (one visual). Slicers act as visual-level filters. The most specific level takes precedence when overlapping.<\/p>\n<h2>Power BI Date Hierarchy \u2014 Week Level<\/h2>\n<p>The auto date hierarchy omits weeks. Create a custom Date table with a Week Number column (WEEKNUM in DAX or Power Query), then build a manual Year &gt; Quarter &gt; Month &gt; Week &gt; Day hierarchy.<\/p>\n<h2>Parent-Child Hierarchy Visualization<\/h2>\n<p>For parent-child data (ID + ParentID), use DAX PATH(), PATHITEM(), PATHLENGTH(), and PATHCONTAINS() to flatten into level columns. Create a hierarchy from those columns. The Decomposition Tree and Matrix with expand\/collapse display this well.<\/p>\n<h2>How to Create and Use Hierarchies in Power BI<\/h2>\n<p>This tutorial shows how to create a hierarchy, use it for drill-down, delete auto date hierarchies, and build a hierarchy slicer. About 6 steps.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Power BI Desktop installed<\/li>\n<li>A dataset with fields forming a natural hierarchy (e.g., Date table with Year, Quarter, Month; or Geography with Country, State, City)<\/li>\n<\/ul>\n<h2>Step-by-Step<\/h2>\n<p><strong><b>Step 1 \u2014 Create a hierarchy. <\/b><\/strong>In Fields pane, drag Month onto Year. Power BI creates a hierarchy. Rename it (e.g., &#8216;Time Hierarchy&#8217;).<\/p>\n<p>[Screenshot: Fields pane showing Time Hierarchy with Year and Month levels]<\/p>\n<p><strong><b>Step 2 \u2014 Add more levels. <\/b><\/strong>Right-click Day &gt; Add to Hierarchy &gt; Time Hierarchy. Reorder by dragging if needed.<\/p>\n<p><strong><b>Step 3 \u2014 Add to a visual. <\/b><\/strong>Create a bar chart, drag the hierarchy into Axis. Use drill icons in the visual header to navigate levels.<\/p>\n<p>[Screenshot: Bar chart with drill-down icons highlighted]<\/p>\n<p><strong><b>Step 4 \u2014 Disable auto date hierarchy (optional). <\/b><\/strong>File &gt; Options &gt; Current File &gt; Data Load &gt; uncheck Auto Date\/Time.<\/p>\n<p><strong><b>Step 5 \u2014 Add a Hierarchy Slicer (optional). <\/b><\/strong>Visualizations pane &gt; &#8216;&#8230;&#8217; &gt; Get more visuals &gt; search &#8216;Hierarchy Slicer&#8217; &gt; install. Add to report and drag a hierarchy into it.<\/p>\n<p><strong><b>Step 6 \u2014 Use in a Matrix visual. <\/b><\/strong>Create a Matrix, drag hierarchy into Rows. Click +\/- icons to expand\/collapse \u2014 like a Pivot Table with drill-down.<\/p>\n<h2><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>What Is a Hierarchy in Power BI? A hierarchy in Power BI groups related fields \u2014 such as Year &gt; Quarter &gt; Month &gt; Day, or Country &gt; State &gt; City \u2014 into a single drillable unit in the Fields pane. Hierarchies enable drill-down and drill-up within visuals, letting users explore data at different levels [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"template":"","meta":{"_acf_changed":false},"curriculum-category":[90,109,91],"custom_linking_tags":[],"class_list":["post-1925","curriculum","type-curriculum","status-publish","hentry","curriculum-category-power-bi","curriculum-category-data-modeling-in-power-bi","curriculum-category-power-bi-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hierarchy in Power BI<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hierarchy in Power BI\" \/>\n<meta property=\"og:description\" content=\"What Is a Hierarchy in Power BI? A hierarchy in Power BI groups related fields \u2014 such as Year &gt; Quarter &gt; Month &gt; Day, or Country &gt; State &gt; City \u2014 into a single drillable unit in the Fields pane. Hierarchies enable drill-down and drill-up within visuals, letting users explore data at different levels [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Free Materials\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-08T09:39:17+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/\",\"url\":\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/\",\"name\":\"Hierarchy in Power BI\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/explore\/#website\"},\"datePublished\":\"2026-09-08T09:34:55+00:00\",\"dateModified\":\"2026-09-08T09:39:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/explore\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hierarchy in Power BI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/explore\/#website\",\"url\":\"https:\/\/entri.app\/explore\/\",\"name\":\"Entri Free Materials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/explore\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/explore\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/explore\/#organization\",\"name\":\"Entri Free Materials\",\"url\":\"https:\/\/entri.app\/explore\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg\",\"contentUrl\":\"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg\",\"caption\":\"Entri Free Materials\"},\"image\":{\"@id\":\"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hierarchy in Power BI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/","og_locale":"en_US","og_type":"article","og_title":"Hierarchy in Power BI","og_description":"What Is a Hierarchy in Power BI? A hierarchy in Power BI groups related fields \u2014 such as Year &gt; Quarter &gt; Month &gt; Day, or Country &gt; State &gt; City \u2014 into a single drillable unit in the Fields pane. Hierarchies enable drill-down and drill-up within visuals, letting users explore data at different levels [&hellip;]","og_url":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/","og_site_name":"Entri Free Materials","article_modified_time":"2026-09-08T09:39:17+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/","url":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/","name":"Hierarchy in Power BI","isPartOf":{"@id":"https:\/\/entri.app\/explore\/#website"},"datePublished":"2026-09-08T09:34:55+00:00","dateModified":"2026-09-08T09:39:17+00:00","breadcrumb":{"@id":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/explore\/power-bi\/hierarchy-in-power-bi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/explore\/"},{"@type":"ListItem","position":2,"name":"Hierarchy in Power BI"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/explore\/#website","url":"https:\/\/entri.app\/explore\/","name":"Entri Free Materials","description":"","publisher":{"@id":"https:\/\/entri.app\/explore\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/explore\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/explore\/#organization","name":"Entri Free Materials","url":"https:\/\/entri.app\/explore\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/","url":"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg","contentUrl":"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg","caption":"Entri Free Materials"},"image":{"@id":"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum\/1925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum"}],"about":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/types\/curriculum"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/users\/2"}],"wp:attachment":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/media?parent=1925"}],"wp:term":[{"taxonomy":"curriculum-category","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum-category?post=1925"},{"taxonomy":"custom_linking_tags","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/custom_linking_tags?post=1925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}