+ Reply to Thread
Results 1 to 6 of 6

Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

  1. #1
    Registered User
    Join Date
    01-30-2021
    Location
    new york, new york
    MS-Off Ver
    2019
    Posts
    11

    Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

    Please see attached file

    - "My Pivot" tab is the pivot field I created based on data in "Data" tab.
    - "Ideal Pivot" shows a screenshot of a pivot table based on the same data just in an ideal format.

    I need help in recreating "Ideal Pivot" tab format and structure.

    Some notes on columns in Data:
    - Detail column assigns a unique number to a service date. So if there 4 entries with the date 7/19/2019 - they will be assigned number 1 and so on.
    - Signoff comment is included as a filter in the pivot table to remove results that have the value "Not".

    - The goal as you can see in the Ideal Pivot tab, is to show the sum of charges by year, by detail (meaning by the unique number or service date) and then by day of week.
    -In the Ideal Pivot, all charges for a specific detail number/day are automatically added and shown as 1 number (sum of all charges for that service date/day)
    Attached Files Attached Files
    Last edited by rangers27; 01-30-2021 at 10:57 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

    Hi there,

    Please aee attached file. Is that what you are looking for?

    Basically, with the Pivot table active, click on Pivot Tools in the top ribbon, then Design.
    From there, Report Layout. I changed it to Tabular Form.
    Attached Files Attached Files
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Registered User
    Join Date
    01-30-2021
    Location
    new york, new york
    MS-Off Ver
    2019
    Posts
    11

    Re: Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

    Hey thank you so much for your help! I appreciate it!

    There is just 1 more thing I am trying to do:
    - Do you see in the "Ideal Pivot" tab, all charges for a specific day are rolled up into 1 cell?
    - For example, all charges for any Monday will be rolled up and shown as $6,500, inclusive of all charges for that day.

    In the "My Pivit" tab:
    - each charge is listed separately even for the same day

    Example (the very first one on "My Pivit":
    Detail: 3
    Sunday is listed 5 times showing 5 individual charges

    Any way to group it so that all charges for detail #3 and that sunday are rolled up into one total for the day?

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

    Hi again,
    Have a look at the atached.
    The issue was the formula in your data for the 'Detail' column.
    I have forced the result into Text and that seems to work.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-30-2021
    Location
    new york, new york
    MS-Off Ver
    2019
    Posts
    11

    Re: Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

    thank you so so much! you solved it perfectly

    if you get the chance can you explain what the formula is doing?

    =TEXT(SUMPRODUCT(1/COUNTIFS(A$2:B3,B$2:B3)),0)&" "

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Pivot Table - How to Structure/Edit Pivot Fields to Present Data in Preferred Way

    Hi rangers27,

    You already had the Sumproduct formula:
    The SUMPRODUCT and COUNTIF parts basically count on how many unique dates you have. This is done with an expanding range (only the first cell reference is fixed with an $ sign, the end range is growing as you pull the formula down. This gives you the unique 'Detail' sequence numbers.

    The bits I have added are in blue: Telling excel that I want the result from the formula as text, formatted as '0' with is a number without any decimals. The red bit is actually not required, but I added it to double ensure the result is 'Text' with adding a 'space' at the end of the result.

    =TEXT(SUMPRODUCT(1/COUNTIFS(A$2:B3,B$2:B3)),0)&" "

    You could actually simplify it to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note the range correction in the Countif part.


    If your Question is answered; please mark it SOLVED. You can do this via the Thread Tools at the top of your original post.
    If you are happy with a member's solution, you can say 'Thanks' and click the 'Star' to Add Reputation.

+ 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. [SOLVED] Convert table to data structure for pivot table
    By wviveen in forum Excel General
    Replies: 2
    Last Post: 11-09-2020, 11:33 AM
  2. [SOLVED] Power pivot or pivot table for connecting data and creating calculated fields
    By jaryszek in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-06-2019, 08:31 AM
  3. [SOLVED] Can I use VLOOKUP in the pivot fields to pull data from a pivot table?
    By ericrichard25 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-13-2018, 10:05 AM
  4. How to present cumulative data using a chart and pivot table
    By Rob (SA) in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 04-29-2014, 06:14 AM
  5. Collapse/Expand - Pivot table Fields - Need equivalent option in Excel VBA Pivot table
    By ragavendraph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 03:00 PM
  6. Differentiate between column fields and data fields in a pivot table
    By whiteheadw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2009, 01:59 PM
  7. How do I use a pivot table to present data, not sum or count it.
    By Rick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2006, 08:20 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