Hi there seems to be a bug with the lot subtotals....
# general
l
Hi there seems to be a bug with the lot subtotals. whenever I order by the dimension that is in the columns section, the subtotals disappear
1
p
👋 Thanks for your message - someone from the Lightdash support team will get back to you asap. Feel free to add any additional context to the thread here in the meantime (screenshots, app version if you're self-hosting etc.).
Hey Luke - thanks for sharing. I'll try to reproduce so I can create a bug report to link here.
l
also one to note, it doesnt seem that row totals work in the sub totals either
also I dont think they populate for when a value in sub column is null
p
Hey Luke, sorry I'm having some trouble reproducing. Here's a similar query (I think) that is a bit simpler: https://demo.lightdash.com/share/baNuvmMhTqiyZ_hg1lZ2V for me the row totals and column totals work, and the subtotals also come through okay - am i missing anything about how you have it set up?
I also tried switching to a count_distinct metric but that works okay too. I did notice that it takes a second or two to calculate the subtotals so i wonder if something is going wrong on the front end when you click the subtotal checkbox?
l
hey jake you will need to sort by the nested rows https://demo.lightdash.com/share/dzJ0REgPbucrinmgo5358
or by using a table calculation that uses a window function that orderss/partitions by the nested columns https://demo.lightdash.com/share/jvBMrfnaAPlDY_o_miN9d I have reproduced in the links provided
p
Got it, thank you! I'll check these out and log the bug(s).
l
amazing thanks Jake!
k
👋 Hey LP just following up on this with a logged issue here: https://github.com/lightdash/lightdash/issues/14187 Thanks for all of the context/detail - really helpful for debugging!
electric mint heart 1
c
I've upvoted issue #14187 for you! You're the first user to request this issue. I'm tracking it, so I'll notify everyone here as soon as it's fixed.
🥳 ZeRego started work on issue #14187!
We've fixed issue #14187: subtotals do not appear when adding ordering by the
columns
in a pivoted table
Lightdash Cloud users will automatically get the fix once your instance updates (All instances update at 01:00 PST [10:00 CET] daily). Self-hosted users should update to the latest version to get the fix 🎉
🔧 We've reopened this issue: issue #14187: subtotals do not appear when adding ordering by the
columns
in a pivoted table
I'll notify everybody here as soon as there's another update.
We've fixed issue #14187: subtotals do not appear when adding ordering by the
columns
in a pivoted table
Lightdash Cloud users will automatically get the fix once your instance updates (All instances update at 01:00 PST [10:00 CET] daily). Self-hosted users should update to the latest version to get the fix 🎉
l
WOOOOO