Showing only total in pivot table for some of the items

turezky

New Member
Joined
Sep 10, 2014
Messages
3
Consider the following data set:
Code:
[TABLE="width: 437"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Product[/TD]
[TD]Unit Price[/TD]
[TD]Sales Volume[/TD]
[TD]Revenue[/TD]
[TD]Discount  %[/TD]
[TD]Discount Value[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]2.5[/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]3.75[/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Apr[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]125[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]6.25[/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]7.5[/TD]
[/TR]
[TR]
[TD]Jun[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]175[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]8.75[/TD]
[/TR]
[TR]
[TD]Jul[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Aug[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]225[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]11.25[/TD]
[/TR]
[TR]
[TD]Sep[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]12.5[/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]275[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]13.75[/TD]
[/TR]
[TR]
[TD]Nov[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]Dec[/TD]
[TD]A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]325[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]16.25[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]3.6[/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]140[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]4.2[/TD]
[/TR]
[TR]
[TD]Apr[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]160[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]4.8[/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]5.4[/TD]
[/TR]
[TR]
[TD]Jun[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]Jul[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]220[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]6.6[/TD]
[/TR]
[TR]
[TD]Aug[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]240[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]7.2[/TD]
[/TR]
[TR]
[TD]Sep[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]7.8[/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]280[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]8.4[/TD]
[/TR]
[TR]
[TD]Nov[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Dec[/TD]
[TD]B[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]320[/TD]
[TD="align: right"]3%[/TD]
[TD="align: right"]9.6[/TD]
[/TR]
</tbody>[/TABLE]

I'd like to create a 2D pivot that would show products as rows, and months as columns for sales revenue only, whereas the discount amount will be shown as total only.

Currently, Excel gives monthly breakdown for both sales revenue and discount amount; see example below:



I can simply hide the unnecessary columns, but this solution is not neat, and I will have other calculations with totals, so for each of them a 12 month break-down will be created.



Is there a way of achieving this results with standard pivot functionality?
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Watch MrExcel Video

Forum statistics

Threads
1,109,445
Messages
5,528,801
Members
409,835
Latest member
Mafu1267

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top