{"id":43682,"date":"2024-11-08T22:03:28","date_gmt":"2024-11-08T17:03:28","guid":{"rendered":"https:\/\/chartexpo.com\/blog\/?p=43682"},"modified":"2025-12-17T14:39:25","modified_gmt":"2025-12-17T09:39:25","slug":"topn-dax","status":"publish","type":"post","link":"https:\/\/chartexpo.com\/blog\/topn-dax","title":{"rendered":"TOPN DAX Formula for Dynamic Data Filtering"},"content":{"rendered":"<p>TOPN DAX Function is a tool in Power BI that helps users retrieve a specified number of rows from a table (or column) based on a given criterion.<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/topn-dax.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" style=\"max-width: 100%;\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/topn-dax.jpg\" alt=\"TOPN DAX\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2NzcrU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTY3Nys=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZyt4bCtjZXhwbytDRTY3Nys=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<p>In this guide, you&#8217;ll discover the various aspects of the TOPN DAX Function, the purpose and benefits of the Power BI TOPN function, and common mistakes to avoid when using the TOPN function in Power BI.<\/p>\n<h3>Table of Contents:<\/h3>\n<ol>\n<li><a href=\"#define-topn-dax\">Define TOPN DAX.<\/a><\/li>\n<li><a href=\"#why-is-dax-topn-important\">Why is DAX TOPN Important?<\/a><\/li>\n<li><a href=\"#how-to-use-the-topn-dax-function-in-power-bi\">How to Use the TOPN DAX Function in Power BI?<\/a><\/li>\n<li><a href=\"#how-to-apply-the-topn-dax-function-for-data-evaluation-in-power-bi\">How to Apply the TOPN DAX Function for Data Evaluation in Power BI?<\/a><\/li>\n<li><a href=\"#what-type-of-common-mistakes-to-avoid-when-using-the-topn-function-in-power-bi\">What Type of Common Mistakes to Avoid When Using the TOPN Function in Power BI?<\/a><\/li>\n<li><a href=\"#how-do-you-efficiently-use-the-topn-dax-function-in-power-bi\">How Do You Efficiently Use the TOPN DAX Function in Power BI?<\/a><\/li>\n<li><a href=\"#what-are-the-purpose-and-benefits-of-the-power-bi-topn-function\">What are the Purpose and Benefits of the Power BI TOPN Function?<\/a><\/li>\n<li><a href=\"#wrap-up\">Wrap Up<\/a><\/li>\n<\/ol>\n<p>First&#8230;<\/p>\n<h2 id=\"define-topn-dax\">Define TOPN DAX.<\/h2>\n<p>The TOPN DAX Function in Power BI is used to rank data and retrieve a specific number of rows based on a certain condition. It\u2019s useful for <a href=\"https:\/\/chartexpo.com\/blog\/analyzing-and-interpreting-data\" target=\"_blank\" rel=\"noopener\">analyzing and visualizing data<\/a>, and it allows users to focus on the most relevant information.<\/p>\n<p>With the TOPN DAX Function, you can quickly identify top performers, anomalies, or values that meet a specific criterion within a dataset.<\/p>\n<p>One of the key features of the TOPN DAX Function is its flexibility in defining the condition for ranking. Users can specify various criteria like sorting by a specific column, filtering by a certain value, or applying complex logical expressions. It allows users to customize the ranking based on their specific requirements and gain deeper insights into the data.<\/p>\n<p>Here are examples of how to present your data with different visualizations:<\/p>\n<h3>Comparison Bar Chart<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/comparison-bar-chart-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/comparison-bar-chart-after-using-topn-dax-formula.jpg\" alt=\"Comparison Bar Chart After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<h3>Sankey Chart<\/h3>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-chart-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-chart-after-using-topn-dax-formula.jpg\" alt=\"Sankey Chart After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<h2 id=\"why-is-dax-topn-important\">Why is DAX TOPN Important?<\/h2>\n<p>The TOPN function in DAX helps users extract a specified number of rows, usually the top N, from a table (or table expression) based on a defined sorting order. This comes in handy in scenarios when analysts (or business users) have to focus on a subset of data that meets certain criteria or exhibits specific characteristics.<\/p>\n<h2 id=\"how-to-use-the-topn-dax-function-in-power-bi\">How to Use the TOPN DAX Function in Power BI?<\/h2>\n<ol>\n<li><strong>Identify Target Table:<\/strong> Select the table (or table expression) containing the data you want to analyze in Power BI.<\/li>\n<li><strong>Access Data View:<\/strong> Navigate to the \u201cData\u201d view in Power BI to work with columns and tables.<\/li>\n<li><strong>Create Measure or Calculated Column:<\/strong> Use the TOPN function within a DAX measure (or calculated column).<\/li>\n<li><strong>Specify N and Sorting Criteria:<\/strong> Define the value of N and establish the sorting criteria to determine the top rows.<\/li>\n<li><strong>Apply Filter:<\/strong> The TOPN result can be used as a filter in visualizations to emphasize and analyze the top data points effectively.<\/li>\n<li><strong>Refresh Data:<\/strong> Refresh data to reflect any changes in the visualization based on the TOPN function.<\/li>\n<\/ol>\n<h2 id=\"how-to-apply-the-topn-dax-function-for-data-evaluation-in-power-bi\">How to Apply the TOPN DAX Function for Data Evaluation in Power BI?<\/h2>\n<h3>Syntax<\/h3>\n<ul>\n<li>TOPN(&lt;n_value&gt;, &lt;table&gt;, &lt;orderBy_expression&gt;, [&lt;order&gt;[, &lt;orderBy_expression&gt;, [&lt;order&gt;]]\u2026])<\/li>\n<\/ul>\n<h3>n_value<\/h3>\n<p>The first parameter will determine the number of rows that will be returned. A single scalar value will be returned where the expression will evaluate multiple rows.<\/p>\n<h3>table<\/h3>\n<p>This is the table from where you would like to evaluate the TOPN values.<\/p>\n<h3>orderBy_expression<\/h3>\n<p>This may consist of any DAX expression by which the result of the expression will sort and evaluate each row of the table.<\/p>\n<h3>order<\/h3>\n<p>(Optional) it will sort your expression in ascending (or descending) order.<\/p>\n<h3>DAX TOPN function implementation examples in Power BI<\/h3>\n<h4>Example<\/h4>\n<p>EVALUATE<\/p>\n<p>TOPN (<\/p>\n<p>3,<\/p>\n<p>ADDCOLUMNS (<\/p>\n<p>\u201c@Sales Amount\u201d, [Sales Amount]<\/p>\n<p>),<\/p>\n<p>[@Sales Amount],<\/p>\n<p>DESC<\/p>\n<p>)<\/p>\n<p>ORDER BY [@Sales Amount] DESC<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/add-columns-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/add-columns-after-using-topn-dax-formula.jpg\" alt=\"Add Columns After Using TOPN DAX Formula\" width=\"560\" \/><\/a><\/div>\n<p>EVALUATE<\/p>\n<p>TOPN (<\/p>\n<p>3,<\/p>\n<p>ADDCOLUMNS (<\/p>\n<p>VALUES ( \u2018Product\u2019[Product Name] ),<\/p>\n<p>\u201c@Sales Amount\u201d, MROUND ( [Sales Amount], 500000 )<\/p>\n<p>),<\/p>\n<p>[@Sales Amount],<\/p>\n<p>DESC<\/p>\n<p>)<\/p>\n<p>ORDER BY [@Sales Amount] DESC<\/p>\n<h4>\u2014 Multiple sorting criteria can be provided in further parameters<\/h4>\n<p>EVALUATE<\/p>\n<p>TOPN (<\/p>\n<p>3,<\/p>\n<p>ADDCOLUMNS (<\/p>\n<p>VALUES ( \u2018Product\u2019[Product Name] ),<\/p>\n<p>\u201c@Sales Amount\u201d, MROUND ( [Sales Amount], 500000 )<\/p>\n<p>),<\/p>\n<p>[@Sales Amount],<\/p>\n<p>DESC,<\/p>\n<p>[Product Name],<\/p>\n<p>ASC<\/p>\n<p>)<\/p>\n<p>ORDER BY [@Sales Amount] DESC<\/p>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/order-by-columns-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/order-by-columns-after-using-topn-dax-formula.jpg\" alt=\"Order By Columns After Using TOPN DAX Formula\" width=\"559\" \/><\/a><\/div>\n<h2 id=\"what-type-of-common-mistakes-to-avoid-when-using-the-topn-function-in-power-bi\">What Type of Common Mistakes to Avoid When Using the TOPN Function in Power BI?<\/h2>\n<ul>\n<li><strong>Incorrect Sorting Criteria:<\/strong> You need to ascertain that the sorting criteria specified in the TOPN function align with the desired ranking order.<\/li>\n<li><strong>Inconsistent Data Types:<\/strong> Verify that data types in the sorting column match. Discrepancies lead to unexpected results.<\/li>\n<li><strong>Ignoring Filtering Context:<\/strong> You need to have a good grasp of the filtering context. Ignoring it may lead to unintended outcomes, and that\u2019s quite common when handling complex <a href=\"https:\/\/chartexpo.com\/blog\/power-bi-data-model\" target=\"_blank\" rel=\"noopener\">data models<\/a>.<\/li>\n<li><strong>Misunderstanding N Value:<\/strong> You have to be clear on the meaning of N and adjust it according to the desired number of top rows.<\/li>\n<\/ul>\n<h2 id=\"how-do-you-efficiently-use-the-topn-dax-function-in-power-bi\">How Do You Efficiently Use the TOPN DAX Function in Power BI?<\/h2>\n<ul>\n<li><strong>Optimize Sorting:<\/strong> Choose the most efficient sorting column to enhance performance.<\/li>\n<li><strong>Selective Use:<\/strong> Apply TOPN to relevant scenarios and avoid unnecessary usage.<\/li>\n<li><strong>Indexing Consideration:<\/strong> Assess indexing on columns used in sorting for improved query performance.<\/li>\n<li><strong>Use in Measures:<\/strong> Apply TOPN within measures for customizable and dynamic analysis based on changing conditions.<\/li>\n<\/ul>\n<p data-pm-slice=\"0 0 []\">Use the TOPN DAX function in Power BI with a <a href=\"https:\/\/chartexpo.com\/charts\/sankey-diagram\" target=\"_blank\" rel=\"noopener\">Sankey Diagram maker<\/a> to highlight top-performing values and reveal meaningful data flows.<\/p>\n<p>Here\u2019s a breakdown of the five stages.<\/p>\n<h3>Stage 1: Log into Power BI, enter your email, and click \u201cSubmit.\u201d<\/h3>\n<ul>\n<li>Log in to Power BI.<\/li>\n<li>Enter your email address and click the \u201c<strong>Submit<\/strong>\u201d button.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-email-to-login-to-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-email-to-login-to-power-bi.jpg\" alt=\"Enter email to login to Power BI\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>You are redirected to your Microsoft account.<\/li>\n<li>Enter your password and click \u201c<strong>Sign in<\/strong>\u201c.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-password-to-login-to-power-bi.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/enter-password-to-login-to-power-bi.jpg\" alt=\"Enter Password to login to Power BI\" width=\"363\" \/><\/a><\/div>\n<ul>\n<li>You can choose whether to stay signed in.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/click-on-stay-signed-in.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/05\/click-on-stay-signed-in.jpg\" alt=\"Click on stay signed in\" width=\"392\" \/><\/a><\/div>\n<ul>\n<li>Once done, the Power BI home screen will open.<\/li>\n<\/ul>\n<h3>Stage 2: Create a Data Set and Select the Data Set to Use in the Sankey Chart<\/h3>\n<ul>\n<li>Go to the left-side menu and click the \u201c<strong>Create<\/strong>\u201d button.<\/li>\n<li>Select \u201c<strong>Paste or manually enter data<\/strong>\u201c.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/02\/select-paste-or-manually-enter-data-in-power-bi-ce487.jpg\"><img decoding=\"async\" class=\"alignnone size full wp image 4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/02\/select-paste-or-manually-enter-data-in-power-bi-ce487.jpg\" alt=\"select Paste or manually enter data in Power BI ce487\" width=\"650\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2NzcrU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTY3Nys=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZyt4bCtjZXhwbytDRTY3Nys=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<ul>\n<li>We&#8217;ll use the <a href=\"https:\/\/chartexpo.com\/blog\/sample-data-for-power-bi\" target=\"_blank\" rel=\"noopener noreferrer\">sample data<\/a> below for this example.<\/li>\n<\/ul>\n<table class=\"static\" style=\"table-layout: fixed; overflow-x: auto; border: 1px; font-size: 17px;\">\n<tbody>\n<tr>\n<td><strong>Total Cost<\/strong><\/td>\n<td><strong>Company Type<\/strong><\/td>\n<td><strong>Company Name<\/strong><\/td>\n<td><strong>Expertise Categories<\/strong><\/td>\n<td><strong>Expertise<\/strong><\/td>\n<td><strong>Cost<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Subcontractor<\/td>\n<td>Skyline Contractors<\/td>\n<td>Mechanical Installation<\/td>\n<td>Plumbing &amp; Heating<\/td>\n<td>15456<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Subcontractor<\/td>\n<td>Skyline Contractors<\/td>\n<td>Mechanical Installation<\/td>\n<td>Mechanical Work<\/td>\n<td>10159<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Subcontractor<\/td>\n<td>Onyx General Contractors<\/td>\n<td>Mechanical Installation<\/td>\n<td>Plumbing &amp; Heating<\/td>\n<td>18045<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Subcontractor<\/td>\n<td>Onyx General Contractors<\/td>\n<td>Mechanical Installation<\/td>\n<td>Mechanical Work<\/td>\n<td>12695<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Subcontractor<\/td>\n<td>Living Well Remodeling<\/td>\n<td>Mechanical Installation<\/td>\n<td>Plumbing &amp; Heating<\/td>\n<td>14589<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Subcontractor<\/td>\n<td>Living Well Remodeling<\/td>\n<td>Mechanical Installation<\/td>\n<td>Welding<\/td>\n<td>11456<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Supplier<\/td>\n<td>Power-up Builders<\/td>\n<td>Raw Material<\/td>\n<td>Cement<\/td>\n<td>20561<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Supplier<\/td>\n<td>Power-up Builders<\/td>\n<td>Raw Material<\/td>\n<td>Steel<\/td>\n<td>32456<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Supplier<\/td>\n<td>Five-star Construction<\/td>\n<td>Raw Material<\/td>\n<td>Bricks<\/td>\n<td>10253<\/td>\n<\/tr>\n<tr>\n<td>Total Cost<\/td>\n<td>Supplier<\/td>\n<td>Five-star Construction<\/td>\n<td>Raw Material<\/td>\n<td>Timber<\/td>\n<td>9000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Paste the data table above into the \u201cPower Query\u201d window. Next, select the \u201cCreate a dataset only\u201d option.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/select-create-a-dataset-only-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/select-create-a-dataset-only-after-using-topn-dax-formula.jpg\" alt=\"Select Create a Dataset Only After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Navigate to the left-side menu, and click on the &#8220;Data Hub&#8221; option. Power BI will populate the data set list. If no data set has been created, you&#8217;ll get an error message.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-data-hub-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-data-hub-after-using-topn-dax-formula.jpg\" alt=\"Click on Data Hub After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Choose the data set you\u2019ll want to use to create the <a href=\"https:\/\/www.chartexpo.com\/charts\/sankey-diagram\" target=\"_blank\" rel=\"noopener\">Sankey diagram<\/a>. Power BI populates the screen as shown below.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/create-sankey-diagram-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/create-sankey-diagram-after-using-topn-dax-formula.jpg\" alt=\"Create Sankey Diagram After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Click on the \u201cCreate a report\u201d dropdown. After that, select \u201cStart from scratch.\u201d<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-create-a-report-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-create-a-report-after-using-topn-dax-formula.jpg\" alt=\"Click Create a Report After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>The Report Canvas screen appears as shown below.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/report-canvas-screen-appears-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/report-canvas-screen-appears-after-using-topn-dax-formula.jpg\" alt=\"Report Canvas Screen Appears After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<h3>Stage 3: Add the Power BI Sankey Diagram Extension by ChartExpo<\/h3>\n<ul>\n<li>To create the Sankey Diagram, you\u2019ll need an add-in or the Power BI visual from AppSource. Navigate to the right side of the <a href=\"https:\/\/chartexpo.com\/blog\/power-bi-dashboards-design\" target=\"_blank\" rel=\"noopener\">Power BI dashboard<\/a>, and open the Power BI Visualizations panel. Next, click the ellipsis symbol (\u2026) to import the Power BI Sankey Diagram extension by ChartExpo.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-three-symbol-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-three-symbol-after-using-topn-dax-formula.jpg\" alt=\"Click Three Symbol After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>In the next menu that opens, select the \u201cGet more visuals\u201d option.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/select-get-more-visuals-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/select-get-more-visuals-after-using-topn-dax-formula.jpg\" alt=\"Select Get More Visuals After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Enter \u201cSankey Diagram for Power BI by ChartExpo\u201d in the highlighted search box. You\u2019ll see the \u201cSankey Diagram for Power BI by ChartExpo.\u201d<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/enter-sankey-diagram-search-box-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/enter-sankey-diagram-search-box-after-using-topn-dax-formula.jpg\" alt=\"Enter Sankey Diagram Search Box After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Click the highlighted \u201cAdd\u201d button.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-add-button-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/click-add-button-after-using-topn-dax-formula.jpg\" alt=\"Click Add Button After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>Power BI will add the \u201cSankey Diagram for Power BI by ChartExpo\u201d icon in the visualization panel.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-diagram-icon-in-visualization-panel-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-diagram-icon-in-visualization-panel-after-using-topn-dax-formula.jpg\" alt=\"Sankey Diagram Icon in Visualization Panel After Using TOPN DAX Formula\" width=\"239\" \/><\/a><\/div>\n<h3>Stage 4: Draw a Sankey Diagram with ChartExpo\u2019s Power BI Extension<\/h3>\n<ul>\n<li>Select the \u201cSankey Diagram for Power BI by ChartExpo\u201d icon in the visualization panel. A window similar to the one below will open in the report section of your dashboard.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/report-section-of-your-dashboard-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/report-section-of-your-dashboard-after-using-topn-dax-formula.jpg\" alt=\"Report Section of Your Dashboard After Using TOPN DAX Formula\" width=\"380\" \/><\/a><\/div>\n<ul>\n<li>You can resize the visual as needed. Navigate to the right side of the Power BI dashboard. You\u2019ll see \u201cFields\u201d next to \u201cVisualizations.\u201d<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/see-fields-next-to-visualizations-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/see-fields-next-to-visualizations-after-using-topn-dax-formula.jpg\" alt=\"See Fields Next to Visualizations After Using TOPN DAX Formula\" width=\"454\" \/><\/a><\/div>\n<ul>\n<li>You\u2019ll have to select the ChartExpo visual. To select the fields, follow the sequence below:<\/li>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Total Cost<\/li>\n<li>Company Type<\/li>\n<li>Company Name<\/li>\n<li>Expertise Categories<\/li>\n<li>Expertise<\/li>\n<li>Cost<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/select-fields-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/select-fields-after-using-topn-dax-formula.jpg\" alt=\"Select Fields After Using TOPN DAX Formula\" width=\"227\" \/><\/a><\/div>\n<ul>\n<li>You\u2019ll have to provide your email address or a ChartExpo license.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/provide-email-address-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/provide-email-address-after-using-topn-dax-formula.jpg\" alt=\"Provide Email Address After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<h3>Stage 5: Activate the ChartExpo Trial or Apply a Subscription Key<\/h3>\n<ul>\n<li>To do that, select the ChartExpo visual. You\u2019ll see three icons below \u201cBuild Visual\u201d in the Visualizations panel.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/build-visual-in-visualizations-panel-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/build-visual-in-visualizations-panel-after-using-topn-dax-formula.jpg\" alt=\"Build Visual in Visualizations Panel After Using TOPN DAX Formula\" width=\"269\" \/><\/a><\/div>\n<ul>\n<li>Select the middle icon, \u201cFormat visual.\u201d The visual properties will be populated as shown below.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/visual-properties-will-be-popoulated-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/visual-properties-will-be-popoulated-after-using-topn-dax-formula.jpg\" alt=\"Visual Properties will be Popoulated After Using TOPN DAX Formula\" width=\"240\" \/><\/a><\/div>\n<ul>\n<li>To begin using ChartExpo as a new user, you should enter your email address in the textbox under the \u201cTrial Mode\u201d section. After that, toggle \u201cEnable Trial\u201d to activate the 7-day trial.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/enable-trial-activate-7-day-trail-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/enable-trial-activate-7-day-trail-after-using-topn-dax-formula.jpg\" alt=\"Enable Trial Activate 7-Day Trail After Using TOPN DAX Formula\" width=\"242\" \/><\/a><\/div>\n<ul>\n<li>You\u2019ll receive a welcome email from ChartExpo. The Sankey Diagram you create comes with the ChartExpo watermark.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-diagram-with-chartexpo-watermark-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-diagram-with-chartexpo-watermark-after-using-topn-dax-formula.jpg\" alt=\"Sankey Diagram with ChartExpo Watermark After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>If you have a license key, enter the license key in the \u201cChartExpo License Key&#8221; textbox in the &#8220;License Settings&#8221; section. Slide the toggle switch next to &#8220;Enable License&#8221; to &#8220;On.&#8221;<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/enter-license-key-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/enter-license-key-after-using-topn-dax-formula.jpg\" alt=\"Enter License Key After Using TOPN DAX Formula\" width=\"235\" \/><\/a><\/div>\n<ul>\n<li>The Sankey Diagram doesn\u2019t come with a watermark.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-diagram-without-chartexpo-watermark-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/sankey-diagram-without-chartexpo-watermark-after-using-topn-dax-formula.jpg\" alt=\"Sankey Diagram without ChartExpo Watermark After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>To add a Prefix (like the $ sign) with the numeric values in the chart, expand the \u201cStats\u2019 properties and include the Prefix value.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/add-prefix-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/add-prefix-after-using-topn-dax-formula.jpg\" alt=\"Add Prefix After Using TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<ul>\n<li>To add colors to each node, expand the \u201cLevel Colors\u201d properties and select the colors.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/add-color-to-each-node-after-using-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/add-color-to-each-node-after-using-topn-dax-formula.jpg\" alt=\"Add Color to Each Node After Using TOPN DAX Formula\" width=\"228\" \/><\/a><\/div>\n<ul>\n<li>Changes will be automatically saved.<\/li>\n<\/ul>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/final-topn-dax-formula.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/final-topn-dax-formula.jpg\" alt=\"Final TOPN DAX Formula\" width=\"650\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytwYitjZXhwbytQQkk2NzcrU2Fua2V5Kw==\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-power-bi.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZytncytjZXhwbytDRTY3Nys=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-google-sheets.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a> <a href=\"https:\/\/chartexpo.com\/utmAction\/MTYrYmxvZyt4bCtjZXhwbytDRTY3Nys=\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2023\/04\/CTA-in-microsoft-excel.jpg\" alt=\"\" width=\"205\" height=\"113\" \/><\/a><\/div>\n<p><strong>Insights<\/strong><\/p>\n<ul>\n<li>At Level 1 (Total Cost), the procurement cost is $155K.<\/li>\n<li>At Level 2 (Company Type), out of the $155K cost, $82.4K (53.3%) was spent on subcontractors, while $72.3K (46.7%) was allocated to the supplier.<\/li>\n<li>At Level 3 (Company Name), the supplier cost of $72.3K was divided into two companies: Five-star Construction and Power-up Builder, with charges of $19.3K and $53.0K, respectively.<\/li>\n<li>The subcontractor cost of $82.4K was distributed among three companies: Onyx General Contractors, Skyline Contractors, and Living Well Remodeling. They charged $30.7K, $25.6K, and $26.0K, respectively, for their services.<\/li>\n<\/ul>\n<h3>Visualizing Insights with Power BI&#8217;s TOPN DAX Function:<\/h3>\n<p>Unlock the potential of Power BI\u2019s TOPN DAX function in this hands-on guide, where you\u2019ll explore how to extract the top N values from your data. This feature lets you focus on the most important data points, creating dynamic visuals. By applying the TOPN function, you can visually filter and emphasize the highest-performing categories, making it easier to analyze and present your findings.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/_UyS9hzktr8?si=zkl8vEiizt8_NipC\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h2 id=\"what-are-the-purpose-and-benefits-of-the-power-bi-topn-function\">What are the Purpose and Benefits of the Power BI TOPN Function?<\/h2>\n<h3>Purpose of Power BI TOPN Function:<\/h3>\n<ul>\n<li>The TOPN function in Power BI helps in extracting a specified number of rows, usually the top N, from a table (or table expression) based on defined sorting criteria. It helps in focusing on a subset of data that meets specific conditions, and that facilitates targeted visualization and <a href=\"https:\/\/chartexpo.com\/blog\/data-analysis\" target=\"_blank\" rel=\"noopener\">data analysis<\/a>.<\/li>\n<\/ul>\n<h3>Benefits of Power BI TOPN Function:<\/h3>\n<ul>\n<li><strong>Data Emphasis:<\/strong> It identifies and emphasizes the most relevant (or significant) data points within a dataset. That helps users concentrate on key information.<\/li>\n<li><strong>Top Performers Analysis:<\/strong> It enables the analysis of top-performing customers, products, or regions. This gives room for <a href=\"https:\/\/chartexpo.com\/blog\/data-driven-decision-making\" target=\"_blank\" rel=\"noopener\">data-driven decision-making<\/a> based on critical insights.<\/li>\n<li><strong>Efficient Data Exploration:<\/strong> It enhances efficiency in exploring <a href=\"https:\/\/chartexpo.com\/blog\/power-bi-dataset\" target=\"_blank\" rel=\"noopener\">large datasets<\/a> by narrowing down the focus to the most impactful data. This will, in turn, lead to quicker and more informed decision-making.<\/li>\n<li><strong>Visualization Enhancement:<\/strong> The effectiveness of <a href=\"https:\/\/chartexpo.com\/blog\/data-visualization-guide\" target=\"_blank\" rel=\"noopener\">data visualizations<\/a> is improved by showcasing and highlighting the outliers (or top contributors) in a dataset.<\/li>\n<\/ul>\n<h2>FAQs<\/h2>\n<h3>What is Topn and Rankx in DAX?<\/h3>\n<p>In DAX (Data Analysis Expressions), TOPN is a function used to retrieve the top N rows based on a specified expression, while RANKX calculates the rank of each row within a table based on a given expression.<\/p>\n<h3>What does Topn do in DAX?<\/h3>\n<p>TOPN in DAX retrieves the top N rows from a table (or expression) based on a specified sorting criterion, and that helps in analyzing and presenting data with the highest values or relevance.<\/p>\n<h4 id=\"wrap-up\">Wrap Up<\/h4>\n<p>DAX TOPN enables the extraction of the top N records using specified criteria. It&#8217;s used to identify trends, outliers, and it also helps users focus on the most relevant data points in a dataset.<\/p>\n<p>When using the TOPN function in Power BI, you should avoid mistakes like overlooking aggregation, and inconsistent data types. Always be mindful of aggregations. Inappropriate aggregation may yield inaccurate results, and you also need to verify that the data types in the sorting column match. Having discrepancies will most likely lead to unexpected results.<\/p>\n<p>You also need to ensure timely data refresh to reflect changes in underlying data. This prevents discrepancies between visualizations and actual datasets.<\/p>\n<p>Visualization is arguably the best way to analyze data. By following the steps in this guide, you\u2019ll become proficient in creating the Sankey Chart in Power BI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><p>Discover TOPN DAX formula in Power BI! Learn how to filter dynamically, apply criteria, avoid common errors, and optimize insights with this powerful function.<\/p>\n&nbsp;&nbsp;<a href=\"https:\/\/chartexpo.com\/blog\/topn-dax\"><\/a><\/p>","protected":false},"author":1,"featured_media":43692,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1017],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>TOPN DAX Formula for Dynamic Data Filtering -<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/chartexpo.com\/blog\/topn-dax\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:title\" content=\"TOPN DAX Formula for Dynamic Data Filtering -\" \/>\r\n<meta name=\"twitter:description\" content=\"Discover TOPN DAX formula in Power BI! Learn how to filter dynamically, apply criteria, avoid common errors, and optimize insights with this powerful function.\" \/>\r\n<meta name=\"twitter:image\" content=\"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/feature-ce677-200x200-1.jpg\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TOPN DAX Formula for Dynamic Data Filtering -","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:\/\/chartexpo.com\/blog\/topn-dax","twitter_card":"summary_large_image","twitter_title":"TOPN DAX Formula for Dynamic Data Filtering -","twitter_description":"Discover TOPN DAX formula in Power BI! Learn how to filter dynamically, apply criteria, avoid common errors, and optimize insights with this powerful function.","twitter_image":"https:\/\/chartexpo.com\/blog\/wp-content\/uploads\/2024\/11\/feature-ce677-200x200-1.jpg","twitter_misc":{"Written by":"admin","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/chartexpo.com\/blog\/topn-dax","url":"https:\/\/chartexpo.com\/blog\/topn-dax","name":"TOPN DAX Formula for Dynamic Data Filtering -","isPartOf":{"@id":"http:\/\/localhost\/blog\/#website"},"datePublished":"2024-11-08T17:03:28+00:00","dateModified":"2025-12-17T09:39:25+00:00","author":{"@id":"http:\/\/localhost\/blog\/#\/schema\/person\/6aceeb7c948a3f66ff6439ce5c24a280"},"breadcrumb":{"@id":"https:\/\/chartexpo.com\/blog\/topn-dax#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/chartexpo.com\/blog\/topn-dax"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/chartexpo.com\/blog\/topn-dax#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost\/blog"},{"@type":"ListItem","position":2,"name":"TOPN DAX Formula for Dynamic Data Filtering"}]},{"@type":"WebSite","@id":"http:\/\/localhost\/blog\/#website","url":"http:\/\/localhost\/blog\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/localhost\/blog\/#\/schema\/person\/6aceeb7c948a3f66ff6439ce5c24a280","name":"admin","url":"https:\/\/chartexpo.com\/blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/43682"}],"collection":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/comments?post=43682"}],"version-history":[{"count":7,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/43682\/revisions"}],"predecessor-version":[{"id":56951,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/posts\/43682\/revisions\/56951"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/media\/43692"}],"wp:attachment":[{"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/media?parent=43682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/categories?post=43682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chartexpo.com\/blog\/wp-json\/wp\/v2\/tags?post=43682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}