Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
Showing results for 
Search instead for 
Did you mean: 

Order By disabled in sql dashboard

New Contributor


I have an issue, when I created my query, with an Order By, and my vizualization, everything was in the right order.

Then, when I put it in my dashboard the order changed. As you can see with the pictures, when I clik on "edit visualization", everything seems in order, but in the dashboard, it's not.

Here is the code for the query :



 concat(directory_name, '_', directory_id) as directory,

 energy_kwh_imputed - energy_kwh as diff_projection_kwh, 

 energy_kwh_m2_imputed - energy_kwh_m2 as diff_projection_kwh_m2


 datalab.benchmark.rich_kpi_scope as scope

 INNER JOIN datalab.benchmark.rich_kpi_consumption as rk_cons USING (directory_id, utilities)

ORDER BY rk_cons.energy_kwh_m2_imputed DESC




New Contributor III

Try adding row() as an additional variable in your query that you can use as the x-axis. Your code could look something like: row() over( rk_cons.energy_kwh_m2_imputed DESC).

Honored Contributor

Hi @Laure Decaudin​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.


Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!