
Transpose and Measures on Rows
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
actually there's a Richard I got a great bug report for you after this it's uh it's pretty funny if you or go if you select select a month column click on it and attempt to Dollar format it some wild wild stuff starts to happen anyway uh now that I've killed that workbook that awesomely died I'm gonna try this demo again um all right so let's say we have a standard pivot table pivoted by you got time and then it's pivoted by gender and you've got a bunch of accounts um there's been this request that a lot of people like to flip the table to see time going horizontally and then the measures going vertically so let hope this works so then you click it and
that so now we've swapped probably won't make probably make this a button because it makes May less sense as a toggle but now you've got measures here your measure names are here the values are going across with the time and then gender swap down too you don't need gender it's just can just work like this in the table with the measures going across um column toes are disabled because they don't really work it doesn't necessarily make sense to add all these to like super aggregate all these together but row totals do work um Stephen can you column total if you have a dimension there no it would uh like you mean if I put gender yeah if you put gender back on it will it
it it won't like like it would have to I don't know it it would do weird stuff I don't like cuz like if you if you uh if you unap it we will do row totals for example yes but that's because if you unap it the uh these are now like your your each of these row totals is aggregating a different one of the measures vers if you're no do this on the unpivot it would be oh I see what you're saying and then because you could just do this and and make a section yeah yeah yeah I have to think about it it would be like a form of it would maybe look more like sub totaling in the UI would that's exactly right
well actually wait hold on so the thing is right all of this is like using the native stuff so wait no put this back um we've got gender here I'm really curious happen if I just click this it might all explode no it didn't work and this is not going to drag but anyway it would be it's there's something in there like the thing is it's all happening in SQL so usually it work like most things work with uh like so calculations work wait oh so do this right like that so now that's it's it's working along here um or just yeah so let's see what else the per measure formats work so like I can go to this count and for whatever silly reason
format it with dollars so now product these ones are formatted the other ones are not uh drills work so it won't get confused if I try to this I've just got this value for 10 for orders count I drill in that works um and then the cool another cool thing is this kind of like I'm going to remove that dollar because it's really weird looking uh if it like again because it's just like once it gets like this it's just a result to the rest of the app so like if I go to charts like it just kind of makes a nice stacked line chart or like a stack bar chart um Stephen can you move them uh can you put a dimension inside the
measures what do you mean a dimension inside me uh can you add gender to the right of the measure label here it's possibly hardcoded to not be able to like I can't yeah it seems to always want to add to the left well that yeah I don't think we let reordering when it's pivoted uh directly except for maybe in the maybe in the table options uh so maybe try killing the header that like kill the pivot and see no try it in the in the editor on the right oh over here they're separated think you're going to things are meas label measure label yeah let's see whoa I cannot believe that just worked okay uh oh my God yeah I really did not I thought
that ordering was going to be hardcoded somewhere deep but I guess not so hoay um yeah so uh actually okay so now can the same thing work inside the out in when it's pivoted like do we show measure value as a group lit on the pivot now wait what do you mean like go back to table unpivot unpivot the measures if you don't mind sorry sorry I meant pivot pivot the measures sorry um like just just swap back yeah exactly just go back to normal okay so I think yeah what would be nice here is if we kept measure values on pivot and then you could actually swap do the exact same swapping that we just did maybe that's like too complex but that would
give you like the complete dynamicism of yeah I think I think we want that there yeah oh I see what you're saying well that's not that's like that's like really not supported by the the pivoter really wants those measures to be the last thing in the kind of tree of columns so like it we could do it but it would almost be like a whole separate effort uh to like put the measures on the top of the tree of pivot colums and anyone who's been in pivot.one save it as a fact table and then pivot it in a new tab yeah yeah if you absolutely had to have it like that very cool uh I guess just I'll keep asking questions uh can you can
you like right click on the pivots and pivot them or uh is it all tied into that button like right click on like if you just want to move the measures you swap rows and columns and then essentially resap back your gender yeah yeah okay yeah now