Exploding pivots

Steven Talbot · Friday Demos · September 20, 2024 · 7:49

A huge step forward in the flexibility of working with pivoted data. Now pivots can be instantly turned into filtered measures. This opens up a variety of new functionality: * Flexible…

Try it yourselfThe full week on docsdashboardsworkbook

Transcript

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

  1. working all right uh right I'll go um so worked on working on the feature Zoom can you can you zoom in um we have this feature right where you can click on a thing and create a filtered measure from a column that's been around for a while uh there's been this request though to um just like when you have a bunch of pivots pivots are good for a lot of things they're Dynamic but you can't drag them around and like customize the ordering right so build this feature and still don't know what to call it this is on my local but uh it's this right now this is the menu option so you hit this pivot explode button Let's ignore those options for a second

  2. uh and now you've got I've taken my this is just the 2x two pivot and now I've got these four filtered measures from the things that um in the pivot uh so the the reason this initially came up is for period over period it's a good way to create these period over period filtered measures that more or less exist on exist on the back end now um but yeah so you can also explode pivot on a period over period and then you end up with these period over period filtered measures and you can go to so one note for now I've put them in gr fields which is you I think I'm going to launch with it for now because it's like you could accidentally

  3. add like 50 fields to your workbook this way we can see how that goes out in the uh in the field but and tweak but if we want to look at it it's got this these two magic things this this special period measure it's created this date offset from query one year and cancel query filter true in other words ignore the date filter on the query but take the date filter on the qu query and offset it one year and yeah does this also mean that you can just create measures like this now yeah yeah this is like this is this is how I mean you can still you could before you had to create filter measure with a single pivot but yeah now you

  4. can yeah yeah but the like the offset date thing is is like a thing well oh actually it's a good point I may not have wired I should make sure that I don't I doubt I wired this up to this I should make sure it's wired up to this but okayi um and then just checking out the options in that menu a little bit so here I've got pivoted by state sorted by also this is a good reminder I don't think anybody knows this do people know this feature exists you've got this little you can click on these to sort bya the values in a row or you can click on it here and sort by the values in a column total anyway reminder that

  5. exists if you don't know it exists uh but here I've got this sorted by the total state so I want to explode the pivot but I don't really want 50 pivots so I've got this you know there there are these two options here so I can add another bucket and once I choose to do that um I can say okay actually I only want you know the first to say pivot columns uh and then I hit that and it's decomposed it right it's got California Texas and then it's just throwing this other Bucket over here this is awesome so so that yeah because because the the problem with a pit right if you just throw away your pivot and turn it on into filtered measures

  6. then new values might show up and you wouldn't see those values so if you have another bucket at least like things will flip into the other Bucket over time so cool is it actually creating the fields somewhere oh yeah yeah so they're in they're in here um and so yeah you can just go if you just great I love all these measures you can just do that then they're there uh otherwise you could add them selectively this is going to sound a little crazy but is would it be possible in the future for this to be the default way the pivots work it would make me kind of sad the pivots are kind of my original baby and this is like no I mean I

  7. just I I think there are so many use cases for this especially when you start touching C like essentially you're either making a percent of row or a percent of column or something like that and you want it to fill the whole Matrix but like as soon as you hit sort of put outside pivot you probably want this instead because you're trying to do something that is not like structural to the table Yeah I think okay a more a better answer is no I don't think you'd want to do it like when you click pivot because suddenly you like 100 measures and you like what happened right but but we could surface it more prominently maybe yeah that's I I think that's and I actually

  8. think that you want a pivot in the normal case I just think a lot of times when you start touching it and you're trying to do anything that is not Global to the whole table you actually want it to be this and it opens up a lot of stuff in the vi config that is like you can hand control like I literally did one this morning where someone wanted to lock colors and again like maybe that's not the way we lock colors to series long term but it's a very clean way to do it because it's completely explicit if a new series comes in goes into the other bucket or whatever um there's a lot of good arguments with Cals for uh blowing up the

  9. pivot a lot more um like there's a reason that Cal finix cell are not done inside pivot tables I've realized from our usage of it um and like you know the Matrix stuff is still really powerful but this is this is amazing it does work with more than one pivot try the naming question is probably pretty hard is there like a marketing person that's gonna think through yeah someone should tell because call it pivot explode Emoji but I might call it explode the pivot if no one can give me a better name so I I mean I literally actually don't hate that like explo something with explode I don't know we we can uh we can noodle with s Ander on it good yeah think

  10. about it I really like a button that says boom though that's really fun we can keep that button I already put it in an end to- end test so is it in the is it in the pivot itself also like if you right click on the pivot header like where like here I can't see like like here you mean yeah or like even over even over here I mean this ised obviously but like where what would be here no um nothing but we could we could definitely at least put it just also yeah I just I I think Discovery but again like if we're if we're able to predict when people actually want this um it's just I think that I think that people will

  11. want it in lots of circumstances if we think it's be very common action we could put it up in the toolbar like when pivots are there expose it yeah like especially like even just the other thing is like very very powerful in lots of circumstances