
Level of detail with dimensionalize
We're still beefing up level of detail calculations for window function analyses using dimensionalization alongside LoD (think compare to min/max/average among other use cases).
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Okay, that's the first thing. The second thing is kind of a weird pattern that I didn't really think about when we did the level of detail and that's uh nesting kind of dimensionalized calls. So in this case, this came up twice this week. Um is you have a measure that you want to dimensionalize. So the count and then you want to do some additional grouping over that.
Um in this case it's mimicking a window function. So you take the min of the counts that are grouped by whatever dimensions are in the query. Uh, and it wasn't working, I don't think, at all. Wasn't working correctly, that's for sure. Um, so I have a min count. I'll show the SQL as well. If I move Rome out of the way.
Uh, I don't know if you can see this, but now you can do country. Um, and so it's going to show the minimum count grouped by all the countries. You can see the SQL is grouping by country, takes the count, and then that becomes a subquery for the the outer dimensionalized call. Um, and this is something that other tools support when in their own level of detail thing.
So, we we should do that as well. Um, so we got that working. That's it. Uh, quick question on the level of detail stuff. Yeah. Um, and this is maybe actually more for the SE team. Uh, I I have I I don't really know how to use it very well and I feel like a lot of this stuff is locked in your head.
It would be great if we could start writing up some patterns for the use cases on these things just because I think it's they do a lot and it's sort of hard to understand all the different places to use them. Um, so like even just like a community article that's just a long list of examples would be incredibly helpful.
Um, and like we can go credit even from other products that have, you know, the same types of things to understand the types of use cases, but it'd be really helpful to have examples because it they do so much that I feel like I don't even understand like 10% of what they do. I didn't realize people would be doing this nested thing.
So, it just wasn't working. It's like, oh, okay. Like, it's it's a pattern that's used a lot in Tableau. Um, and there's all these blog posts that show you how to do this nested uh, level of detail calls, but there's also a great Tableau blog post that has like 15 like examples of how LOD works and we could mimic that.
Exactly. That would be outstanding. Okay. Yeah, we'll do that.