<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Display Top Categories in Databricks AI/BI Dashboard? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128799#M2182</link>
    <description>&lt;P&gt;Thank you for the prompt response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good that Parameter helps to make the sort dynamic, In my case i got a common dataset which get used across all the pages in the dashboard. Only few widgets need to limit the top 20 records ordered by certain column, rest all should return all the rows.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2025 05:17:24 GMT</pubDate>
    <dc:creator>GunaR</dc:creator>
    <dc:date>2025-08-19T05:17:24Z</dc:date>
    <item>
      <title>How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/93888#M1633</link>
      <description>&lt;P&gt;In a Databricks AI/BI dashboard, I have a field with multiple categories (e.g., district-wise sales with 50 districts). How can I display only the top few categories (like the top 10) based on a specific metric such as sales?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 11:58:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/93888#M1633</guid>
      <dc:creator>Akshay_Petkar</dc:creator>
      <dc:date>2024-10-14T11:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/94299#M1638</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88335"&gt;@Akshay_Petkar&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;in your data tab, can't you create a dataset using "Create From SQL" and write a query like the following and use this dataset in your canvas?&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&amp;nbsp;COUNT&lt;SPAN&gt;(sales_key) total_sales, distirict&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&amp;nbsp;my_table&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GROUP BY&lt;/SPAN&gt;&lt;SPAN&gt; distirict&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ORDER BY&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;total_sales &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;LIMIT&lt;/SPAN&gt; &lt;SPAN&gt;10&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;let me know if I get your question wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Oct 2024 14:10:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/94299#M1638</guid>
      <dc:creator>Mo</dc:creator>
      <dc:date>2024-10-16T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/94369#M1639</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/28727"&gt;@Mo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a &lt;STRONG&gt;AI/BI&lt;/STRONG&gt; dashboard where I need to add multiple charts, each showing the top 10 values. For example, I used a query like &lt;STRONG&gt;select * from table&lt;/STRONG&gt; and in the canvas, I added a chart with 50 unique values, but I want to display only the top 10. In another chart, there are 100 unique values, and again, I need to show the top 10 only. How can I apply this limit across all the charts?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 03:26:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/94369#M1639</guid>
      <dc:creator>Akshay_Petkar</dc:creator>
      <dc:date>2024-10-17T03:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/99711#M1709</link>
      <description>&lt;P&gt;I was having the same question and creating a new SQL dataset for this breaks cross filtering. Since the data is coming from different datasets cross filtering does not work nicely&lt;BR /&gt;&lt;BR /&gt;Is there a more elegant solution to this?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 22:36:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/99711#M1709</guid>
      <dc:creator>migq2</dc:creator>
      <dc:date>2024-11-21T22:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/101566#M1744</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102731"&gt;@migq2&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84946"&gt;@maks&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the AI/BI dashboards in your data, add a limit parameter like:&lt;BR /&gt;select all from my_table limit :limit_number&lt;/P&gt;
&lt;P&gt;to all your tables.&lt;/P&gt;
&lt;P&gt;when you're on canvas and adding visualizations, add a filter and create a parameter with single value:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mo_0-1733821128971.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13416iCA8A7F564D1481EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mo_0-1733821128971.png" alt="Mo_0-1733821128971.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can use that parameter to limit the numbers you're displaying for all the visuals that have that parameter in the limit. here I used the tables in samples.tpch and limit the numbers to 3 rows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mo_1-1733821245900.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13417iA4847FAA4CDEB8B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mo_1-1733821245900.png" alt="Mo_1-1733821245900.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and this a sample query on orders table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT * FROM samples.tpch.orders limit :limit_number&lt;/LI-CODE&gt;
&lt;P&gt;let me know if this helps or you have doubts.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 09:02:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/101566#M1744</guid>
      <dc:creator>Mo</dc:creator>
      <dc:date>2024-12-10T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/109712#M1876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/28727"&gt;@Mo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The parameter limits the rows from the dataset that we read in the query.&amp;nbsp;For example, We create a city-wise sales chart at that time, it aggregates the values and performs a group by. This parameter will not perform on that. It will limit only the rows from the dataset&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 03:39:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/109712#M1876</guid>
      <dc:creator>Akshay_Petkar</dc:creator>
      <dc:date>2025-02-11T03:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/115631#M2014</link>
      <description>&lt;P&gt;Did you find a solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:43:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/115631#M2014</guid>
      <dc:creator>erbg</dc:creator>
      <dc:date>2025-04-16T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128720#M2179</link>
      <description>&lt;P&gt;i got a similar challenge of displaying top 10 rows based on a metrics?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 09:20:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128720#M2179</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-08-18T09:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128733#M2180</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179874"&gt;@GunaR&lt;/a&gt;&amp;nbsp;is this not where we'd want to leverage a parameter? And then pair this with a filter on the dashboard? Perhaps you create an aggregate SQL query for the various metrics&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you can't use a parameter in the ORDER BY clause, which you likely can't because you want a column name to to be output from the parameter, you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_0-1755517644670.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19156i476CAE189A5CBFFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_0-1755517644670.png" alt="BS_THE_ANALYST_0-1755517644670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the CASE statement is a good workaround as a parameter will output a string field. The CASE statement then points it back to the column reference.&lt;/P&gt;&lt;P&gt;Make the parameter a choice and then the user will be able to select the appropriate metric to ORDER BY? In a LIMIT clause, you then just specify a numeric parameter with the appropriate number so they can limit top N&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 11:51:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128733#M2180</guid>
      <dc:creator>BS_THE_ANALYST</dc:creator>
      <dc:date>2025-08-18T11:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128799#M2182</link>
      <description>&lt;P&gt;Thank you for the prompt response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good that Parameter helps to make the sort dynamic, In my case i got a common dataset which get used across all the pages in the dashboard. Only few widgets need to limit the top 20 records ordered by certain column, rest all should return all the rows.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 05:17:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/128799#M2182</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-08-19T05:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display Top Categories in Databricks AI/BI Dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/139868#M2371</link>
      <description>&lt;P&gt;This feature is released under the Oct-2025 round-up. Refer the Topic: "Dashboards Top/Bottom N Bar Chart Categories"&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.databricks.com/blog/whats-new-aibi-october-2025-roundup" target="_blank"&gt;https://www.databricks.com/blog/whats-new-aibi-october-2025-roundup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 05:06:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-display-top-categories-in-databricks-ai-bi-dashboard/m-p/139868#M2371</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-11-21T05:06:36Z</dc:date>
    </item>
  </channel>
</rss>

