Grouping in a Pivot Table - Repeating several columns

B77Wuser

New Member
Joined
Sep 9, 2021
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Hello everyone,

I am struggling with a request and I am not sure whether I am blind to an obvious solution?

I have a fairly simple set of data that gets updated daily, covering data from a week. It looks like this:

example01.JPG


Now I have been asked to set up a report that covers the daily developments and only needs to be refreshed to work (which is achieved with PowerQuery and a macro).

However, the resulting data is not quite in the desired format. If I aggrete in PowerQuery or within a PivotTable afterwards, it looks like this:

example02.JPG


Is there any way of repeating the two columns, but showing only the relevant entries for a certain date? This is what we are looking for:

example03.JPG


Maybe I am blind to an obvious solution here, but what is the best way to achieve this layout? If the input variable would be static, I would know how to use CUBE functions, but all of them - dates, routes, time - are frequently changing.

Is there a smart way to achieve this? Any input is appreciated!

Kind regards!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,730
Messages
6,126,528
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top