<?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: Does anyone knows how to create Pareto plot on databricks lakeview dashboard? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/114748#M1984</link>
    <description>&lt;P&gt;The sorting limitation in combo charts appears to be an intentional design constraint in some visualization implementations. In combo charts, sorting by the y-axis is commonly disabled to avoid issues with multiple metrics where sorting logic could create ambiguity. For example, if a bar chart and a line chart are displayed together, automatic sorting might conflict with the line chart rendering.&lt;/P&gt;
&lt;H3 class="_1jeaq5e0 _1t7bu9h9 heading3"&gt;Workaround 1: Pre-Sort Your Data in SQL&lt;/H3&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;A straightforward way to enforce the correct sorting (by descending potential score) is to pre-sort your data in your SQL query. This ensures that the data fed into the visualization is already in the desired order. Here's what you'd do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;STRONG&gt;Modify your SQL query&lt;/STRONG&gt;:&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-sql _1t7bu9hb hljs language-sql gb5fhw3"&gt;&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; 
    account_name,
    potential_score,
    ROUND(&lt;SPAN class="hljs-built_in"&gt;SUM&lt;/SPAN&gt;(potential_score) &lt;SPAN class="hljs-keyword"&gt;OVER&lt;/SPAN&gt; (&lt;SPAN class="hljs-keyword"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;BY&lt;/SPAN&gt; potential_score &lt;SPAN class="hljs-keyword"&gt;DESC&lt;/SPAN&gt;) &lt;SPAN class="hljs-operator"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;100&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="hljs-built_in"&gt;SUM&lt;/SPAN&gt;(&lt;SPAN class="hljs-built_in"&gt;SUM&lt;/SPAN&gt;(potential_score)) &lt;SPAN class="hljs-keyword"&gt;OVER&lt;/SPAN&gt; (), &lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; cumulative_percentage
&lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; 
    your_table_name
&lt;SPAN class="hljs-keyword"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;BY&lt;/SPAN&gt;
    potential_score &lt;SPAN class="hljs-keyword"&gt;DESC&lt;/SPAN&gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="gb5fhw4"&gt;
&lt;DIV class="gb5fhw5"&gt;SQL&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=" iwpqfy0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Replace &lt;CODE&gt;your_table_name&lt;/CODE&gt; with your actual table name.&lt;/LI&gt;
&lt;LI&gt;This query pre-sorts by &lt;CODE&gt;potential_score&lt;/CODE&gt; in descending order and computes the cumulative percentage directly.&lt;/LI&gt;
&lt;LI&gt;Feeding this pre-sorted data into the combo visualization will ensure the bars are displayed in the correct order.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H3 class="_1jeaq5e0 _1t7bu9h9 heading3"&gt;Workaround 2: Use a Different Visualization Approach&lt;/H3&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;If the alphabetical sorting persists for combo charts or you need finer-grained control:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;STRONG&gt;Separate the visualizations&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Create a standard bar chart for &lt;CODE&gt;account_name&lt;/CODE&gt; vs. &lt;CODE&gt;potential_score&lt;/CODE&gt; and ensure it is sorted in descending order by preparing the data as outlined in "Workaround 1".&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Separately, create a line chart for &lt;CODE&gt;cumulative_percentage&lt;/CODE&gt; with the same x-axis values.&lt;/SPAN&gt;
&lt;DIV class="_1sijkvt0"&gt;&lt;A class="sehpqj2 sehpqj0 a88g7q1" href="https://learn.microsoft.com/en-us/azure/databricks/dashboards/" target="_blank" rel="noopener noreferrer" aria-label="Citation 1"&gt;1&lt;/A&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;STRONG&gt;Combine with external tools&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;If this sorting behavior cannot be resolved directly in Lakeview Dashboards, consider creating the combined chart in an external BI tool like Tableau or Power BI and embed it within your Databricks dashboard.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Mon, 07 Apr 2025 18:45:42 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-04-07T18:45:42Z</dc:date>
    <item>
      <title>Does anyone knows how to create Pareto plot on databricks lakeview dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/114732#M1981</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does anyone knows how to create Pareto plot on databricks lakeview dashboard? My stakeholder would really like to see this display on the dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to get the values on a bar chart and create a cumulative percentage variable, but when I'm using combo display, I'm not able to sort the bars in descending order, for some reason it just sorted by alphabetic order. Here are the variables I'm using:&lt;/P&gt;&lt;P&gt;x-axis = account names&lt;/P&gt;&lt;P&gt;y-axis (bar) = potential score&lt;/P&gt;&lt;P&gt;y-axis (line) = cumulative percentage of potential score.&lt;/P&gt;&lt;P&gt;Would appreciate if anyone could provide possible solution or any alternative ideas.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 14:49:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/114732#M1981</guid>
      <dc:creator>Paddy_chu</dc:creator>
      <dc:date>2025-04-07T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone knows how to create Pareto plot on databricks lakeview dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/114748#M1984</link>
      <description>&lt;P&gt;The sorting limitation in combo charts appears to be an intentional design constraint in some visualization implementations. In combo charts, sorting by the y-axis is commonly disabled to avoid issues with multiple metrics where sorting logic could create ambiguity. For example, if a bar chart and a line chart are displayed together, automatic sorting might conflict with the line chart rendering.&lt;/P&gt;
&lt;H3 class="_1jeaq5e0 _1t7bu9h9 heading3"&gt;Workaround 1: Pre-Sort Your Data in SQL&lt;/H3&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;A straightforward way to enforce the correct sorting (by descending potential score) is to pre-sort your data in your SQL query. This ensures that the data fed into the visualization is already in the desired order. Here's what you'd do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;STRONG&gt;Modify your SQL query&lt;/STRONG&gt;:&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-sql _1t7bu9hb hljs language-sql gb5fhw3"&gt;&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; 
    account_name,
    potential_score,
    ROUND(&lt;SPAN class="hljs-built_in"&gt;SUM&lt;/SPAN&gt;(potential_score) &lt;SPAN class="hljs-keyword"&gt;OVER&lt;/SPAN&gt; (&lt;SPAN class="hljs-keyword"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;BY&lt;/SPAN&gt; potential_score &lt;SPAN class="hljs-keyword"&gt;DESC&lt;/SPAN&gt;) &lt;SPAN class="hljs-operator"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;100&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;/&lt;/SPAN&gt; &lt;SPAN class="hljs-built_in"&gt;SUM&lt;/SPAN&gt;(&lt;SPAN class="hljs-built_in"&gt;SUM&lt;/SPAN&gt;(potential_score)) &lt;SPAN class="hljs-keyword"&gt;OVER&lt;/SPAN&gt; (), &lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; cumulative_percentage
&lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; 
    your_table_name
&lt;SPAN class="hljs-keyword"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;BY&lt;/SPAN&gt;
    potential_score &lt;SPAN class="hljs-keyword"&gt;DESC&lt;/SPAN&gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="gb5fhw4"&gt;
&lt;DIV class="gb5fhw5"&gt;SQL&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=" iwpqfy0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Replace &lt;CODE&gt;your_table_name&lt;/CODE&gt; with your actual table name.&lt;/LI&gt;
&lt;LI&gt;This query pre-sorts by &lt;CODE&gt;potential_score&lt;/CODE&gt; in descending order and computes the cumulative percentage directly.&lt;/LI&gt;
&lt;LI&gt;Feeding this pre-sorted data into the combo visualization will ensure the bars are displayed in the correct order.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;H3 class="_1jeaq5e0 _1t7bu9h9 heading3"&gt;Workaround 2: Use a Different Visualization Approach&lt;/H3&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;If the alphabetical sorting persists for combo charts or you need finer-grained control:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;STRONG&gt;Separate the visualizations&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Create a standard bar chart for &lt;CODE&gt;account_name&lt;/CODE&gt; vs. &lt;CODE&gt;potential_score&lt;/CODE&gt; and ensure it is sorted in descending order by preparing the data as outlined in "Workaround 1".&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Separately, create a line chart for &lt;CODE&gt;cumulative_percentage&lt;/CODE&gt; with the same x-axis values.&lt;/SPAN&gt;
&lt;DIV class="_1sijkvt0"&gt;&lt;A class="sehpqj2 sehpqj0 a88g7q1" href="https://learn.microsoft.com/en-us/azure/databricks/dashboards/" target="_blank" rel="noopener noreferrer" aria-label="Citation 1"&gt;1&lt;/A&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;STRONG&gt;Combine with external tools&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;If this sorting behavior cannot be resolved directly in Lakeview Dashboards, consider creating the combined chart in an external BI tool like Tableau or Power BI and embed it within your Databricks dashboard.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:45:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/114748#M1984</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-04-07T18:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone knows how to create Pareto plot on databricks lakeview dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115042#M1994</link>
      <description>&lt;P&gt;Thank you for your reply, I tried the pre-sorting on workaround 1, but when I display that on combo plot it automatically sort my x-axis by alphabetic order. It would be perfect if workaround 1 works, this seems to be the simplest solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've been attempting to use Power BI, as suggested in workaround 2, to create a plot and embed it into my Databricks dashboard. Do you have any resources or links that explain how to do this? My company settings prevent me from using Power BI to run data on the Databricks cluster, but I'm interested in trying it because Databricks' dashboard visualizations seem limited.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 17:41:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115042#M1994</guid>
      <dc:creator>Paddy_chu</dc:creator>
      <dc:date>2025-04-09T17:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone knows how to create Pareto plot on databricks lakeview dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115047#M1995</link>
      <description>&lt;P&gt;Currently, it is not possible to directly embed a Power BI visualization into a Lakeview (AI/BI) dashboard in Databricks. The embedding functionality in Databricks Lakeview dashboards supports adding visualizations, text, and other widgets specifically built within the Databricks ecosystem. Power BI visualizations cannot be integrated directly into these dashboards.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 18:01:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115047#M1995</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-04-09T18:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone knows how to create Pareto plot on databricks lakeview dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115052#M1996</link>
      <description>&lt;P&gt;Thank you for your reply. Just trying to understand more to your point on this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Combine with external tools&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;If this sorting behavior cannot be resolved directly in Lakeview Dashboards, consider creating the &lt;STRONG&gt;combined chart in an external BI tool like Tableau or Power BI and embed it within your Databricks dashboard&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Would you have any example to how to create the combined chart in external BI tool and embed in Databricks dashboard if PowerBI won't work?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Apr 2025 18:06:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115052#M1996</guid>
      <dc:creator>Paddy_chu</dc:creator>
      <dc:date>2025-04-09T18:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone knows how to create Pareto plot on databricks lakeview dashboard?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115055#M1997</link>
      <description>&lt;P&gt;I do not have any handy.&amp;nbsp; A bit of research on your part might get you what you need.&amp;nbsp; Also, the recommendations to embed in Lakeview refers to embedding a static image of your chart in Lakeview dashboards.&amp;nbsp; You cannot integrate third party tools in Lakeview.&amp;nbsp; Hope this helps. Louis&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 18:21:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/does-anyone-knows-how-to-create-pareto-plot-on-databricks/m-p/115055#M1997</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-04-09T18:21:07Z</dc:date>
    </item>
  </channel>
</rss>

