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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,677
Messages
6,173,793
Members
452,534
Latest member
autodiscreet

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