Drill queries

Workbook Dashboards · Friday Demos · August 30, 2024 · 8:52

An early look at drill-by-query - more flexibility to build full queries for drill down. This also lays the groundwork for drilling into visualizations

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. screen. I've been working on some detailing tasks. So, as you know, we have fields in our product for detail. We actually listed the proto- query. This is similar to a query that starts with the base view you're currently in and then adds fields to it. I'm adding the ability to have a whole series of queries so you have more control over some of the query parameters.

  2. So in this simple case, I'll define a drill-down query for this count measure where we have multiple fields, a view, and a clear constraint. It may be worth noting that you now need to fully write out the request. It still takes filters from the detail object. So, if you have a specific row with a number of dimensions in it, it will take into account the filters that come in .

  3. I would really like these queries to become composable. This means that if you had fields defined, and I wanted to restrict them, maybe I could define those two things together, and they could be combined. But this is some further work. But just to show you what it looks like. So again , remember that this is a limited query with two fields.

  4. I'm looking at the workbook. We can go in and do the detailing. It behaves the same as any other detail. But essentially, you have more control over what the detail will be. So, you can make your data usage more streamlined. Maybe you want to get multiple items, or sort them, or have more explicit controls over this. So it's kind of a work in progress.

  5. Therefore. Jimmy, can you set the theme and basic view ? I noticed that in the filter declaration, the block has a basic view and theme. I'm not sure why they're both there, but is it possible to redirect this to a topic as well , or will it always redirect you to , I wonder what topics it will redirect you to here?

  6. I think there is no topic right now , but I think you could actually specify a topic. Yes, if you look at the filter declaration on the query, it seems like there is a basic representation and theme. And I'm not sure if you need both of them, and why, but... Yeah, they're a little different, but we can probably simplify it.

  7. Even if you have your own thoughts, the basic look can be both on- topic and off-topic. I actually think this is where query composition gets interesting. So, if by default you start with a topic and want to delve deeper into it, we should keep that topic. We also need to maintain the basic look. You don't have to list it to make it available.

  8. Right now, as it is, you have to explicitly ask all these things. But over time we will be able to change that. The other cool thing is that if you make it complex, you can imagine how you set a default version and I can add it for the whole model. So, this count details specific inventory items, down to the last one.

  9. And then , in the workbook or in a specific query, you can choose a different drill-down. Maybe in this book we want to drill down to states, and in this query we want to drill down to countries or something else at a higher level. But you can gain more control. It could be the same basic look. And maybe in the future, instead of a query with a table, you'll want to have a visualization for drill-down, and it'll probably be needed everywhere.

  10. So it 's almost like a query representation for us that will be created. Jamie, question: can you go back to the definition of a model for a second? Yes. Is it possible to have several of these on one metric and then have multiple ways to drill down? Yes. So, you can have different options for the user. Yes, I suppose they will have to be named somehow.

  11. Yes, you can make the titles also the link text if you want to overload , for example, first, second. Right? What do you mean by link text? When you click here, it will show this and this. You could, you could... It should reflect that. This is a bug. I have to say "first". should be written " drill down to" or, actually, whatever we're doing with the links.

  12. You know, if you have several of the links listed that we showed, it's just a mistake, I have n't fixed it yet. Good. Yes. Because now you can have granularity, now you can have several different options for granularity, like a detailed view versus some kind of generalized one. This is true. So you can just say, "regardless of the country level, drill down to the state, drill down to the region," well, you know, whatever it is .

  13. Almost like a hack for categorical data . Yes. Certainly. And I would like to add something more explicit, you know, we also have dimensional granularity, which ultimately allows us to do certain categorical things, like it's kind of a way to replace granularity. So you could replace country with state and region. But we will gain more control over this and allow you to better customize the creation process.

  14. What happens if you have, say, a current drilldown parameter and a drilldown request? Now requests for detail are overwhelming him. That is, even if we have detail fields, they won't be... They are simply ignored. Yes, they are simply ignored. Although I don't really like it. I think it would be cool if you could have a detail field that was basic to every query, and you could combine these things together, sort of compositely.

  15. But at least to start, it will probably just execute queries, and if you specify more granularity, it will be a more verbose version. I think this is the right choice. Yes. Yes. Cross-topic granularity, in my opinion, is the biggest immediate improvement, because it doesn't work very well right now . I think you could do it . Actually, I had to reset my settings , so it looks like I don't have any themes defined, but I think you could actually do it today with this.

  16. So, you can imagine... This is great. Yes, you can imagine it being , for example, theme one, with themes one and two defined, or a basic version. I actually think the way the details work ...I'd have to look into it. They seem to default to taking the topic from the query you start with, but this can now be overridden.

  17. This is great. So these are just full query definitions, right? Full query definition. Literally, that's exactly right. And all we do is take the full query definition and extract the filters, for example, query filters and dimensions in the row. Okay, maybe that's too much. Does this mean you can just write SQL there? Oh, I don't know. But I'm not even sure if we opened No, I don't think we should.

  18. I don't want to know what this will lead to. I don't even know how this relates to the initial fields, but someone will definitely try it if I think about it . The answer to this basic presentation theme is: you need a basic presentation if you don't have a theme. Yes. And literally until today, they weren't really redundant.

  19. You could have a theme and set the base view to something in the theme that wasn't the default base view of the theme, but we're disabling that. So, we should turn it off. Yes. Um, yes, that's the answer. Oh, I didn't know we could do that, considering we're turning it off. Can we throw an error when they don't match now?

  20. Yes. Well, so if I specify a topic, maybe it's worth issuing a warning that it's being ignored. Yes. No, no, these are things. Yes. In the interface, the whole point is that we are just Yes. Yes. No, no. I mean in YAML, because you can declare a filter object. I learned this just by looking at filters , but you could declare a base view and a theme, and in theory they could be different things, but it would be good to warn that we are discarding the base view.

  21. It's likely that the fix implemented in this PR won't work for queries, which could be both a feature and a bug, right? It's like being an advanced user who wants to do something tricky in their query. I don't think we should allow people to be creative within topics. A theme is just a basic presentation. Yes.