
Cancel query filters for filtered measures
New functionality to ignore query-specific filters in favor of a filtered measure's specific filters. This allows for escaping filters comparing to population totals over specific filters,…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh I can go give this is a demo of uh I demoed this last week but I had literally just made the first thing work and I don't think I really demoed what it actually was but now it's merged so this is live and shipped so this this concept is right we have these filtered measures in yaml um these various like counting people in age groups and if we go over here to the query right there's the different counts but if I filter age to something that doesn't include the age groups most they're all zero because they're not the actual account they're not in the bucket but what so what this new feature is this ability to go basically say like no I want these
filters I've got this cancel query filter thing which I just realized in preparing this demo isn't autocomp completing in yaml for some reason so go check that down but it's another it's a second parameter that these these filters can take so I'm just saying basically like I want this filter to apply to age um and I want to ignore the filter in the query that's on age so if I save these now I pop over here see the basically the they' forced themselves through um and are now going giving me the count of these people in these age buckets uh regardless of this filter on age in the query um and you can just reinforce the point0 again same deal right some of these one
of at least one of these was filtered for California I think two of them right they go to zero because they were filtered from California and now filter from New York but I can do the same thing down here again not Auto completing got to go figure that out but C Lo pop over here and there it's back so it allows um it allow some interesting kind of analyses and now I think last week because my demo was so unclear a couple people thought that what I really had done was this or something like right and and I think people would like that um so we will do that it it is pretty easy to just take the same underlying stuff and implement this so
that's that's that demo um you um Stephen do you have any uh I guess are there any like I guess examples customers have like where would where would where should we advise someone to use this or like are there kind kind of like common use cases that FKS so um honestly the no one has asked exactly for this what it is is the Bedrock and I just need to add like one more little other thing of doing period over period filtered measures because that's like essentially what a period over period filtered measure is right it says like you have this filter on current year in your query I want to put a filter measure on previous year and ignore filter on current your in your
query so this is the underlying technology and we've exposed it um but don't quite have the right like offsetting syntax to do period or period filters but like the idea is that this would be used at minimum under the hood for a reality that will hopefully exist in a week or two where you can have a period over period pivot click a magical button in the UI and it explodes your pivot and now you have period over period filtered measures um and they will use this uh and so other things this is kind of like the individual filter cancel I don't know maybe it's useful maybe it's not um I know for sure the cancel all thing has been literally asked for like since that
last demo based on the thought that that was what the demo was um and there are you can also with similar patterns in the code start cancelling grouping instead um which is this whole thing that like Tableau does that ler never did um but so that there's some stuff we could start pulling on there to to make some interesting new kinds of measures do you think we need any indication in the table that that those columns are ignoring a filter at all I don't know it's a good question I I I think we'll have to just see about feedback like what people are using these for like in know in the real world like are you giving these names that are like are making that
clear like over are you put like overall in the name or something I don't know but yeah yeah I hate to add more to the taable but one thing we had talked about is like there's a lot of interesting information about a column that maybe like if we did a better kind of like uh I don't know talk about like hover cards and columns or something that a way to like you know reveal descriptions but maybe other information like this that like hey this guy also ignores this other filter there because it's this special kind of filtered measure something like that it might be some ways at least to get that information even if it's not like immediately visible in the UI be able to
see that I don't know can you show really quickly what it looks like in the sequel just kind of curious how this yes show great um so oh yeah uh this one has does it need this many left joins that's a good question um but basically the the various like it essentially does all the thing is right it's all in Sequel there's no magic it does for you like the way you would would have to do something like this in looker is by like making derived tables for your various uh things that you want to ignore your query filters on and like binding the filters you want to bind and not binding the others and then joining those dve tables back in and this essentially
is doing that automatically so this one did you know these joins in here and the where they're joining back in on the grouping and the joins are selectively ignoring various filters so would you do could you do this I would I need to think through this myself but like would you do this instead of making like user fax tables you could basically have like the lifetime value or whatever of a customer it depends on the I'm sure there are use cases where you could avoid making fact tables interesting this certainly like the yeah if you want all time like if you want to measure like all time like the Canon thing like all time orders the the only awkwardness not think about there may not
be a way to express any value filter in yl which means you might not be able to do like is any value cancel filter but you can certainly do like is not null cancel filter as a hack uh for now but yeah so that that could be like a way to make an alltime measure like basically just ignore the the time filter on this measure great cool do we add like in the edit field panel on the workbook should we add a like some way to do add this control I think if people are finding as long as people find it useful uh the only I didn't uh because it was more of like troduced as this like period for yeah so like but yeah
we can go add that if people are using inl and are like let me can I just make this in the UI uh certainly then like editing one of these in the UI would probably like drop the cancel which is not great so may need to do it for that reason alone cool I have