Hi all,
Pretty straightforward question, I hope. I have a data set that I'd like to see if I can get set up in a pivot table in a custom way. The data is being pulled out a SQL database and looks like this when I retrieve it (dummy data created for example purposes - its actually quite a bit larger with more dates/categories):
What I would like know if it's possible to do is summarize the data where date data in both the column fields and row fields. In the column fields, the data is summarized as a week, whereas in the row field it would be summarized as day of week. Approximate mocked up example (because I can't do what I want in Pivot Table, or I wouldn't be here
)
Where the $xx.xx would be summarized amount.
I know how to create the summarized columns, but I'm a bit stumped on the "Day of Week" row fields. Essentially, I need a calculated field, but I need it in the Rows column.
I've played around with it a bit, and my questions are:
Thanks for any help you can provide!
Pretty straightforward question, I hope. I have a data set that I'd like to see if I can get set up in a pivot table in a custom way. The data is being pulled out a SQL database and looks like this when I retrieve it (dummy data created for example purposes - its actually quite a bit larger with more dates/categories):

What I would like know if it's possible to do is summarize the data where date data in both the column fields and row fields. In the column fields, the data is summarized as a week, whereas in the row field it would be summarized as day of week. Approximate mocked up example (because I can't do what I want in Pivot Table, or I wouldn't be here


Where the $xx.xx would be summarized amount.
I know how to create the summarized columns, but I'm a bit stumped on the "Day of Week" row fields. Essentially, I need a calculated field, but I need it in the Rows column.
I've played around with it a bit, and my questions are:
- Is this possible with my dataset as-is? Even if it takes quite a bit of hand-work (it'll be pushed to VBA whenever I get it down, so that is not a concern.)
- If it can't be done by hand, is there a way to override some of those controls with VBA and get it to build (as there is with several other functions where you can work with the data directly - I'm a relatively experienced VBA developer, just haven't worked with pivots much, so assuming it isn't too complicated this wouldn't be an issue.)
- If it isn't possible with the dataset, is there any options I would have beyond directly transposing the data coming from my SQL database? I could feasibly change it from a wide table to a tall table (transpose it back, to where each spend item is an individual line with a date column). I'm trying to avoid this if at all possible as it will be costly when looking at other operations I'm doing with the data (data is >100k rows when transposed to tall with 9 columns and I'm running a lot of other VBA to build tables and retrieve other data from it beyond just the pivot).
Thanks for any help you can provide!