Order By disabled in sql dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-05-2022 08:50 AM
Hello,
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 :
SELECT
*,
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
FROM
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
Thanks,
Laure
- Labels:
-
Dashboard
-
DESC
-
Query
-
SQL
-
SQL Dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-05-2022 03:07 PM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-20-2022 11:30 PM
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.
Thanks!