+ Reply to Thread
Results 1 to 7 of 7

Viewing two variables in one pivot table

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    6

    Viewing two variables in one pivot table

    Hi,

    I am having some trouble with data in a pivot table. In the data source, each row is the name of a product, e.g. Product XYZ and each column heading is the month. The table I have charts the amount of units sold and the total revenue from those products (values are hard coded). I am trying to create a pivot table that will show the breakdown of units sold/month AND the revenues generated/month. This is a little problematic, as the pivot table is unable to distinguish between the "units sold" cells and the "revenue" cells, so uses both in the same table.

    Is there any way for me to show the revenue and units sold separately (in one or more pivot tables), but from the same data source?

    Thanks in advance,
    IR

  2. #2
    Forum Contributor
    Join Date
    03-08-2016
    Location
    kuala lumpur malaysia
    MS-Off Ver
    365
    Posts
    100

    Re: Viewing two variables in one pivot table

    I think it is possible.
    would you want to share the data as it more easier to do it

  3. #3
    Registered User
    Join Date
    11-29-2016
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Viewing two variables in one pivot table

    Unfortunately I am not able to share the exact data as it is sensitive. First row has the month. Second row has "Quantity sold" measured per unit and "Revenue from Sale" measured in dollars (split up by month). Column A has the names of the product. I have attached a very basic example spreadsheet showing these headings. Thanks!

    IR
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Viewing two variables in one pivot table

    Hi IR,

    The example you provided isn't very helpful.
    In order to provide an effective solution, you need to provide a more detailed example of your "raw" data and an example of what you want/need in the finished product.
    Protecting "sensitive" data is very understandable. Just change the names of the products to something like XYZ1, XYZ2, ets....

    Looking forward to helping provide a solution.

    Cheers

  5. #5
    Registered User
    Join Date
    11-29-2016
    Location
    San Diego, California
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Viewing two variables in one pivot table

    I have attached an example sheet. I have two or three year's worth of data in the same format on separate tabs.

    I am trying to create a pivot table that will allow me to group these products into similar products and analyze sales and revenue trends over 3-4 years.

    Ideally, I would have two slicers, one that splits "Amount" and "Qty" into two, and another for the year and month so I can analyze by each year individually or different months together et. This will allow me to see the revenue and unit amounts over time, split up by month. The issue I am having is setting up the pivot table itself, one that will allow me to see the "Qty" values and "Amount" values separately and together because the units are different...

    I hope this makes sense!

    Thanks,
    IR
    Attached Files Attached Files
    Last edited by irampuria1; 12-06-2016 at 03:22 PM.

  6. #6
    Forum Contributor
    Join Date
    03-08-2016
    Location
    kuala lumpur malaysia
    MS-Off Ver
    365
    Posts
    100

    Re: Viewing two variables in one pivot table

    By looking at your excel sheet, I couldn't imagine how to do the pivot table.
    Nevertheless, if you can arrange your data as per Sheet 1 (as attached), it would more easier to do pivot table.
    I tried to do mock-up of the pivot table for your consideration
    Attached Files Attached Files
    Last edited by wanmuhd; 12-06-2016 at 09:53 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Viewing two variables in one pivot table

    I agree with wanmuhd. The data format you provided can't be turned into a Pivot Table.

    The data sheet you provided looks like a report format that was produced by another data system.
    In order to produce effective and usable Pivot Tables you need the actual raw data that would look something like the example wanmuhd provided.
    For the data you presented the raw data would consist of thousands of rows. Each row would be Product Name, Date, Qty and Amount.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Correlation from a pivot table on 3 variables?
    By mra1984 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2013, 01:45 PM
  2. [SOLVED] Pivot table- Select only items having two different variables
    By Excel Dumbo in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 05-13-2013, 07:21 PM
  3. Pivot Table with Time Sensitivity based on Two X-Variables
    By Adam1030 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-05-2013, 02:07 PM
  4. best way to record multiple variables before use in pivot table
    By masterintraining in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-14-2012, 03:02 PM
  5. Update Pivot table fields with variables
    By joneswesley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2009, 05:07 AM
  6. [SOLVED] Viewing source of a pivot table
    By hbear in forum Excel General
    Replies: 3
    Last Post: 08-02-2006, 06:25 PM
  7. [SOLVED] How do I add multiple variables to a pivot table simulaneously
    By Sreejith in forum Excel General
    Replies: 4
    Last Post: 07-21-2006, 09:42 AM
  8. [SOLVED] need to extract data from a pivot table using variables instead o.
    By KyWilde in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1