+ Reply to Thread
Results 1 to 4 of 4

Creating a pvot with two axis to show opened and closed by week

  1. #1
    Registered User
    Join Date
    04-29-2021
    Location
    Leicester, England
    MS-Off Ver
    365
    Posts
    45

    Creating a pvot with two axis to show opened and closed by week

    Hi there, I'm trying to create a pivot table and grpah that shows when a work item was created vs when it was closed (on a secondary axis which is a line), and I just can't seem to get it to work! I've attsached an extract with my progress, could anyone give me any pointers? I'm not sure if it has something to do with the format of the closed date column as when I put that into the pivot on it's own I'm unable to group the dates by week, month, etc.

    Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Creating a pvot with two axis to show opened and closed by week

    By replacing the dashes (-) with zeros which are hidden using custom formatting; then selecting refresh all for the pivot table; then placing the closed field in the Rows area and the closed flag field in the Filters area I was able to group the dates.
    However, I don't understand how you want a pivot chart to display this data.
    It may help if you could use a smaller data set and then draw us a picture of how you would like that data displayed in a chart.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    04-29-2021
    Location
    Leicester, England
    MS-Off Ver
    365
    Posts
    45

    Re: Creating a pvot with two axis to show opened and closed by week

    Quote Originally Posted by JeteMc View Post
    By replacing the dashes (-) with zeros which are hidden using custom formatting; then selecting refresh all for the pivot table; then placing the closed field in the Rows area and the closed flag field in the Filters area I was able to group the dates.
    However, I don't understand how you want a pivot chart to display this data.
    It may help if you could use a smaller data set and then draw us a picture of how you would like that data displayed in a chart.
    Let us know if you have any questions.
    Thanks for the response and info on how to format the closed date column. Essentially I'm trying to get one graph that shows how many items were created (column E) on any given week vs how many were closed (column F). It's easy to get one graph showing how many were opened and another showing how many were closed, but is there a way to combine them into one graph?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Creating a pvot with two axis to show opened and closed by week

    Perhaps the following accomplishes what you want.
    1. Convert the data on Sheet1 into an Excel table (Ctrl + t)
    2. From the Data tab select From Table/Range to get the table into Power Query (also called Get & Transform)
    3. Use the following Advanced Editor code to produce the table seen in columns A:F on the Table1 sheet:
    Please Login or Register  to view this content.
    4. Produce a pivot table from the new table (Table1_2)
    5. Produce the chart from the pivot table
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. Update closed files & check if already opened
    By Desauv86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2016, 08:46 AM
  2. [SOLVED] Conditional Formatting to show week over week improvement/decline
    By erikw48 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-15-2015, 10:22 AM
  3. [SOLVED] Need help! - Copy From Closed to Opened Workbook as Values
    By Ariff_Chowdhury in forum Excel Programming / VBA / Macros
    Replies: 41
    Last Post: 05-28-2015, 02:52 PM
  4. [SOLVED] How to remove empty space, unable to make pvot, because pvot calculate empty space
    By vengatvj in forum Excel Charting & Pivots
    Replies: 20
    Last Post: 10-29-2013, 12:43 PM
  5. [SOLVED] excel hlep to calculate the week no from dispatch to closed calls week wise
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2013, 04:53 AM
  6. creating a table to show resources >25% availability in given week
    By nikoniko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2009, 07:29 AM
  7. charting closed vs opened orders
    By yannb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-03-2005, 11:05 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