
Dynamic fields (parameters)
The first look at dynamic fields - fields coupled to filters for dynamic analysis. Toggling dimensions, measures, or timeframes can now be done through filters, allowing deep interactivity…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I could do one that's very very Half Baked um you Osa pseudo demo too right oh did I not do that already I I can do that one too that one full B little marketing version product um so I've been spending a little bit of time related to migration there's like the legitimate use cases that we don't yet actually solve that looker does in particular around using liquid formatting it's a it's a pretty big hack inside looker to be able to use uh parameters to effectively dynamically change SQL or dynamically change HTML for formatting um and we want to do it in a different way we want to basically have higher level control flow logic in uh in in omy to make it easier um
I this is definitely not fully fully baked but effectively what we're going to or what we're thinking about adding is a new kind of object or new kind of control uh similar to a filter that would let you do it so just to show you like a specific example here you know we've got us us Revenue um I'm going to create a field selection control um and forgive the UI it's it is hideous uh I'm going to add a new Option here to be able to toggle between the two um and basically allow it'll allow you to dynamically update the query using this higher level control or to give another example we could do things like uh add a time frame selection and show the
count and dynamically update these the granularity of dates are like swap out dimensions and and and the like too uh the idea would be this is like a filter can you know operate on a dashboard can listen to dashboard level controls and sort of conditionally apply it to so you could do things like you know have a dashboard that's your you know Impressions dashboard and then toggle to clicks or toggle to cost uh at a high level too so this is it's definitely not uh it's not yet not yet real but uh but uh start starting to come together J I know you're doing that in Explorer right or in a the workbook right now will we also be able to do on a dashboard
at some point def definitely um and you can imagine two other types of uh controls that you you may want so like this is a field selector kind of control and like we could definitely improve the UI like maybe it could be you know a picker kind of a thing where you got like a you know Impressions clicks cost uh but there the like another really common use case too is the like in just a general like arbitrary input so like how do you put in like you want to do a forecast and you want to basically put in a like you know a growth rate and you maybe want like a slider or something like that too and you could have sort of parameterized
input you know Lookers uh liquid allows for some of that parameterized input but you basically are forced to put an inside SQL um but you could do a lot SEL could do kind of anything um but uh we could sort of give you higher level controls too it'll feel more like a application Builder where you have sort of like a toggles and inputs and and the like too but definitely want it to be on the dashboard Jamie would you be able to stack these like if you wanted to add multiple things to a single dashboard as well from the UI uh dashboard experience yeah def definitely so like uh already it will work where basically you could have multiple controls for a given tile uh
and then you can also Imagine too you'd have like many controls like you really like a filter is is one type of control it's a control that's basically controlling the uh you know wear logic inside a SQL statement too here's another type of control where we're controlling and parameterizing like the fields you know sort of the select statement in effect inside the the SQL statement too but there are wide range of other things um we could do and you might want ah add where where was that like where does the logic that contains the switch live is it a model object is it a front end thing like what right now it's ju it's just a front-end thing it doesn't necessar preclude it from becoming
a modeled thing too but like right now I really think of it as almost like query it's like query config kind of kind of piece there that's I think that's great actually yeah I I think I think so too we we were going kind of back and forth whether or not this is a filter or not or whether or not this is like a modeled object or not too and like the it it is a different it's a kind of a different thing and I think actually forcing it into the construct the existing objects would be would be potentially uh uh you know weird would it be easy to duplicate to other dashboards if you just open up a new tab or how would I
I think that's the one most interesting question because like we I think what we want to do is create these kind of like highle components they're like you know like for example we we do want them to be reusable so like even though they're not in the model doesn't necessarily mean we wouldn't wouldn't be able to use it but like I think of this as almost like a retool object like where you can basically construct a lightweight data application and say you have uh you know a time frame selector is probably a uh one that we will pre-built in into everyone so like we just have sort of a little bit of context and know know what time frames are but like maybe you have
like a uh you know the dollar formatting selector thing and you want to go Euro to pounds to to US Dollars I I don't know it's not a great example because really what you want to do is dynamic change change um how you're constructing that but like just imagine that like you you've got uh actually Steven's got a great demo for um you know putting the Euro behind the behind the format or in front of the format so we're not actually changing the the the you know the the data uh but you might want to have that be something that's more like reusable across your your Omni instance so that you can have something that's a little bit more persistent too yeah filters too right
like you'd want to reuse filter like people create all this stuff it'd be really neat to have this kind of reasonable control component type thing yeah this came up on a call just an hour ago aome