Filter value labels

Steven Talbot · Friday Demos · October 11, 2024 · 6:41

A brand new set of controls to label filter values, and pass said labels through as dynamic text. Now filter text can be explicitly set and these values can pass through to fields for…

Transcript

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

  1. is much more obscure um but a very certain special someone really wanted it uh the um this basically we have this date offset from query type which you can use to basically make period over period filtered measures so we made it so that it could take a uh that it accept accept mustache syntax so you can reference our little filters uh blah blah blah that value gesture in here and then if I cut over here I can you know change this dynamically so period picker is equal to one year that's one year ago two years it's two years ago so that that's released um obviously though the the problem with this is kind of funky because the little internal Syntax for how long ago has

  2. sort of leaked uh and they have and also we have this previous period thing which ideally this would be dynamic so this is actually not this step is not new functionality this is just a PSA reminder that you can do this right so in in the label you can do okay let's do count you can reference the thing in the label and then you can do this little mustache else thing to say if not if this is not set uh do this so if we pop over here right now we see this label is updated down dynamically uh this label still has the kind of like generic static one um and okay so that it's still better but not ideal because you've got this two

  3. year this is not like beautiful and you still got this here so I started so those those two things are in production this is not uh this is me hacking yesterday uh start worked on this thing that has been a feature request elsewhere but is useful here where rather than the suggested list being a list of values you have values and labels so one year is last year two year two years ago Etc just human friendly labels pop over here uh do I need to let me just um so now if I pop over here now I have nice labels for these and I pick them I need to figure out what shows up here and what shows up here how we like do deal

  4. with the values versus not um but right now let's say it's this update so it's got the summary here shows the label um and so that it gives you this ability to kind of give suggested values nice labels for your users and then uh to to tie it all off give people the ability to reference rather than the raw filter value the kind of labeled suggestion value so here we now rather than the value we were referencing before filter value label save that so this will kind of ground that and if we reload the page now we have the nice uh human friendly label that we were hoping for and it switches around that dynamically right so now I Chang three years three years ago

  5. here and it works and so now we've essentially rebuilt the period over period experience and filtered measures bit by bit but there it is the um and yeah I think and then now that that suggested label thing will cut hopefully next week and is useful on its own for other kinds of suggestions not just this particular use case in the spirit of K Mouse cookie uh do we have any plans for the filter experience to change uh on the workbook page so in that example the I I presume the filter can only take one value but you're getting the sort of generic filter experience will we have the ability to pass that sort of thing through to the workbook page filter experience so that turns

  6. into like a single select drop down am forgetting something you mean so like having like filter like presentational like configs like we have on the dashboard to be able to I mean it would be nice um I don't think guess yeah I hadn't maybe we just didn't connect the dots it should be I literally see the component because I was messing around with it for the single select so like if we want to put something in the model for filter only field that's like single select which they're like 99% of the time that's what they are that's exactly right um yeah because like there's literally no value to providing more than a single select drop down for something like that so um like I think

  7. the idea of lifting that kind of stuff to the model when there's literally no other option would be wonderful yeah think yeah that's an easy change it should be I think SI wait con are you saying things like in the model so you can specify to on on there's some way to say like this should only take one value or is it I think with so filter only field the only yeah filter only Fields is the only place I'm thinking about this right now but if you have a filter only field that's used in some sort of control for another thing that can only take one value you've essentially declared it's a single select dropdown and and you might as well just make it a

  8. single F drop down with no functionality yeah I think we want kind of like broader controls over effectively that UI interaction so like I know we've gotten requests for controls for example to to have multi select for controls so like multiple fields that are put in and we we sort of want to be able to do you know single select or multi select or like picker or you know search search bar and sort of give people broader controls over that too it's just if it's if it's completely structural to the field like then you just don't even need an option the model would be a great place for that yeah exactly