{"id":1862,"date":"2026-09-02T12:55:21","date_gmt":"2026-09-02T12:55:21","guid":{"rendered":"https:\/\/entri.app\/explore\/?post_type=curriculum&#038;p=1862"},"modified":"2026-09-02T12:55:21","modified_gmt":"2026-09-02T12:55:21","slug":"dax-rankx-and-drill-through","status":"publish","type":"curriculum","link":"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/","title":{"rendered":"DAX RANKX And Drill Through"},"content":{"rendered":"<h2><strong><b>How Do RANKX and Drill Through Work in Power BI?<\/b><\/strong><\/h2>\n<p>RANKX() is a DAX function that ranks rows of a table based on an expression \u2014 such as ranking products by total sales \u2014 and is often paired with a Top N filter to spotlight best or worst performers. Drillthrough is a separate Power BI report feature that lets a viewer right-click a data point to jump to a dedicated detail page pre-filtered to that selection.<\/p>\n<h3><strong><b>What RANKX Does in DAX<\/b><\/strong><\/h3>\n<p>RANKX() ranks rows of a table based on an expression, such as ranking products by total sales \u2014 useful for building leaderboard-style visuals and highlighting top or bottom performers.<\/p>\n<h3><strong><b>Top N Filtering in Power BI<\/b><\/strong><\/h3>\n<p>Top N filtering can be applied via a visual-level filter (the &#8220;Top N&#8221; filter type) or in DAX using TOPN() to return only the highest- or lowest-performing items \u2014 useful for dashboards highlighting best-selling products, top customers, or lowest-performing regions.<\/p>\n<h3><strong><b>What Is Drillthrough in Power BI<\/b><\/strong><\/h3>\n<p>Drillthrough Filters are a special filter type used on a dedicated drillthrough page, triggered by right-clicking a data point on another report page \u2014 the destination page opens pre-filtered to whatever was clicked.<\/p>\n<h3><strong><b>Setting Up and Disabling a Drillthrough Page<\/b><\/strong><\/h3>\n<p>A drillthrough page is built like any other report page, with a drillthrough field added to the Drillthrough well in the Visualizations pane; Power BI automatically adds a back button. Drillthrough can be turned off for a specific visual or page through the page&#8217;s drillthrough settings when it isn&#8217;t wanted.<\/p>\n<h2><strong><b>How to Rank Products and Set Up Drillthrough in Power BI<\/b><\/strong><\/h2>\n<p>This tutorial covers two related report-building techniques in about 7 steps: ranking products with RANKX() and Top N filtering, then setting up a drillthrough page so viewers can jump to product-level detail.<\/p>\n<h3><strong><b>Prerequisites<\/b><\/strong><\/h3>\n<ul>\n<li>Power BI Desktop with a Products\/Sales-style model<\/li>\n<li>A Total Sales measure already created<\/li>\n<\/ul>\n<h3><strong><b>Steps<\/b><\/strong><\/h3>\n<ul>\n<li><b><\/b><strong><b> Create a RANKX measure: <\/b><\/strong>Product Rank = RANKX(ALL(Products), [Total Sales]).<\/li>\n<li><b><\/b><strong><b> Add it to a table visual: <\/b><\/strong>Place Product Name, Total Sales, and Product Rank together to see the ranking.<\/li>\n<li><b><\/b><strong><b> Apply a Top N filter: <\/b><\/strong>Use the visual-level Top N filter type, or wrap RANKX in TOPN() for a DAX-based version.<\/li>\n<li><b><\/b><strong><b> Sort by rank: <\/b><\/strong>Sort the table visual by the Product Rank column so the top performers appear first.<\/li>\n<li><b><\/b><strong><b> Create a new drillthrough page: <\/b><\/strong>Add a page and drag Product Name into the Drillthrough well in the Visualizations pane.<\/li>\n<li><b><\/b><strong><b> Build the detail page: <\/b><\/strong>Add product-level visuals (trend, breakdown) that will filter automatically based on the drillthrough selection.<\/li>\n<li><b><\/b><strong><b> Test the drillthrough: <\/b><\/strong>Right-click a product on the ranked table and confirm it jumps to the filtered detail page with the auto-added back button.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How Do RANKX and Drill Through Work in Power BI? RANKX() is a DAX function that ranks rows of a table based on an expression \u2014 such as ranking products by total sales \u2014 and is often paired with a Top N filter to spotlight best or worst performers. Drillthrough is a separate Power BI [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"template":"","meta":{"_acf_changed":false},"curriculum-category":[90,101,91],"custom_linking_tags":[],"class_list":["post-1862","curriculum","type-curriculum","status-publish","hentry","curriculum-category-power-bi","curriculum-category-power-bi-dax","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>DAX RANKX And Drill Through - Entri Free Materials<\/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\/dax-rankx-and-drill-through\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DAX RANKX And Drill Through - Entri Free Materials\" \/>\n<meta property=\"og:description\" content=\"How Do RANKX and Drill Through Work in Power BI? RANKX() is a DAX function that ranks rows of a table based on an expression \u2014 such as ranking products by total sales \u2014 and is often paired with a Top N filter to spotlight best or worst performers. Drillthrough is a separate Power BI [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Free Materials\" \/>\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=\"2 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\/dax-rankx-and-drill-through\/\",\"url\":\"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/\",\"name\":\"DAX RANKX And Drill Through - Entri Free Materials\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/explore\/#website\"},\"datePublished\":\"2026-09-02T12:55:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/explore\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DAX RANKX And Drill Through\"}]},{\"@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":"DAX RANKX And Drill Through - Entri Free Materials","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\/dax-rankx-and-drill-through\/","og_locale":"en_US","og_type":"article","og_title":"DAX RANKX And Drill Through - Entri Free Materials","og_description":"How Do RANKX and Drill Through Work in Power BI? RANKX() is a DAX function that ranks rows of a table based on an expression \u2014 such as ranking products by total sales \u2014 and is often paired with a Top N filter to spotlight best or worst performers. Drillthrough is a separate Power BI [&hellip;]","og_url":"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/","og_site_name":"Entri Free Materials","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/","url":"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/","name":"DAX RANKX And Drill Through - Entri Free Materials","isPartOf":{"@id":"https:\/\/entri.app\/explore\/#website"},"datePublished":"2026-09-02T12:55:21+00:00","breadcrumb":{"@id":"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/explore\/power-bi\/dax-rankx-and-drill-through\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/explore\/"},{"@type":"ListItem","position":2,"name":"DAX RANKX And Drill Through"}]},{"@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\/1862","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=1862"}],"wp:term":[{"taxonomy":"curriculum-category","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum-category?post=1862"},{"taxonomy":"custom_linking_tags","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/custom_linking_tags?post=1862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}