Grouping Customs Column into PowerPivot

irvinelim

New Member
Joined
Oct 23, 2017
Messages
2
Hi all

I have the following input data that I need to be able to group them into Output PowerPivot 1 and Output PowerPivot 2. The below example is just a simplified version but I would have thousands of row and different column. Could you please help to suggest a method. Really thanks.,



Input:
DateOH Truck CanadaRevenue Truck CanadaOH Truck BrazilRevenue Truck Brazil
1-Oct-1712$10,0008$20,000
2-Oct-1710$15,00010$25,000

<tbody>
</tbody><colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup>

Output PowerPivot1:
OH Truck1-Oct2-Oct
Canada1210
Brazil810

<tbody>
</tbody><colgroup><col><col><col></colgroup>


Output PowerPivot 2:
Daily Revenue1-Oct2-Oct
Canada$10,000$20,000
Brazil$15,000$25,000

<tbody>
</tbody><colgroup><col><col><col></colgroup>
 

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.
To be more specific, please find below input and output

Input Table

WeekDateOH Truck CanadaDaily Revenue CanadaOH Truck BrazilDaily Revenue BrazilOH Truck ALL CountryDaily Revenue ALL Country
401-Oct-1712$10,0009$20,0002130000
402-Oct-1710$15,00010$25,0002040000
403-Oct-1712$10,0008$21,0002031000
404-Oct-1710$15,0007$26,0001741000
405-Oct-1712$10,0009$20,0002130000
406-Oct-1710$15,00010$25,0002040000
407-Oct-1712$10,0008$21,0002031000
418-Oct-1710$15,0007$26,0001741000
419-Oct-1710$15,0007$26,0001741000

<tbody>
</tbody><colgroup><col><col><col><col span="5"></colgroup>


Output Pivot Table (with row items being county so you can filter by country at later stage)

Column Labels
Row Labels10/110/210/310/410/510/610/710/810/9
ALL
Sum of OH Truck ALL Country212020172120201717
Sum of Daily Revenue ALL300004000031000410003000040000310004100041000
Brazil
Sum of OH Truck Brazil91087910877
Sum of Daily Revenue Brazil200002500021000260002000025000210002600026000
Canada
Sum of OH Truck Canada121012101210121010
Sum of Daily Revenue Canada100001500010000150001000015000100001500015000

<tbody>
</tbody><colgroup><col><col span="9"></colgroup>
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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