Solved

Access Pivot Chart: how to show week increments across top of bar chart

Posted on 2011-03-03
15
593 Views
Last Modified: 2012-05-11
I'm trying to create a pivot chart that is similar to a gantt chart in some ways. The Bar Chart format is what I'm using. In the 'column' on the left, going down in a list, are Task descriptions. Each task is a record that has a beginning and ending date. I need on the horizontal top of the chart to show weekly markers, the date changing depending on the current date (meaning each marker is a week out, in ongoing sequence from todays date). How do you set that up?

That's just for the header of the chart. Then I need the 'bar' for each task (record) to reflect its beginning date and ending date. Meaning the bar starts under the column of the header date the begin date corresponds with. And the bar ends under the column of the header date the Ending Date corresponds with.

I don't have a lot of experience with Pivot Charts so any advice would be greatly appreciated.
0
Comment
Question by:AccessWrangler
  • 8
  • 7
15 Comments
 
LVL 39

Expert Comment

by:als315
ID: 35033934
You can download an example of Gantt diagram here:
http://www.access-programmers.co.uk/forums/showthread.php?t=108369
0
 

Author Comment

by:AccessWrangler
ID: 35037543
Thanks for the link- I've looked at that before and it doesn't quite do what I need. I need to do this on a form in Pivot View. I have figured out how to get the 'bars' to look right and measure the correct values but so far I cannot get the grid lines to show date values (each vertical line a date, 1 week apart). If you have any idea how to do that I'd appreciate it.
0
 
LVL 39

Expert Comment

by:als315
ID: 35037662
Can you upload DB with sample data?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:AccessWrangler
ID: 35038152
I've attached a sample db of the issue. Hopefully it'll clarify what I need to do. Thanks for taking a look.
PivotChartExample.zip
0
 
LVL 39

Expert Comment

by:als315
ID: 35041836
I have only one idea (not 100% sure):
now your data are following:
Task, Beginning Date, Duration
Try to change it to values for every date in task range:
Task, Beginning Date, 1
Task, Beginning Date+1, 1
....
Task, Beginning Date+Duration -1, 1
May be it can help.
0
 

Author Comment

by:AccessWrangler
ID: 35043395
Thanks for the help. Are you meaning to put this as an expression in the underlying query? I'm not sure of what the syntax is and exactly where it goes. I'll see if I can work it in but if you could clarify exactly where this should go and the syntax it would be really helpful. Many thanks.
0
 
LVL 39

Expert Comment

by:als315
ID: 35043442
I will try to made example with your test DB, but this idea is not clear enough.
0
 

Author Comment

by:AccessWrangler
ID: 35043454
Thanks- I really appreciate that. I'm not quite getting the concept and that would help a great deal.
0
 
LVL 39

Expert Comment

by:als315
ID: 35045963
My first idea was wrong.
Test included example (form qryTimelinePivot). May be it can be a step in right direction.
I'm not sure it is possible to set today as zero axis.
PivotChartExample.zip
0
 

Author Comment

by:AccessWrangler
ID: 35049835
I think that's a great step in the right direction. Thanks very, very much for putting the time into that. One question, though- how does is the first date on the horizontal axis calculated? I just need to make sure that, as time goes on, the chart resets itself with relevant dates and doesn't keep starting from a very old date. But this looks like it's really in the right direction. thanks again.
0
 

Author Comment

by:AccessWrangler
ID: 35049915
One thing also- it seems the End Dates are not accurate on the bars. the BeginDates are- would you have any idea why that changed on it? I'd need them to fall on the right date.
0
 
LVL 39

Expert Comment

by:als315
ID: 35053451
You should leave DaysTillDue as Date
DaysTillDue: [DueDate]-[BeginDate]
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 35053609
This is example with your idea of different bar colors till Now and after
PivotChartExample.zip
0
 

Author Comment

by:AccessWrangler
ID: 35058978
Ah, that works better- I think I understand how you tweaked it now. I really appreciate your time on that. Many thanks!
0
 

Author Closing Comment

by:AccessWrangler
ID: 35058988
Was very helpful in coming up with a working solution. I'm not completely understanding how it was done but should be able to go in and figure it out.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Top 1 of each supplier 55 60
Modal form 11 30
How can I get the Ribbon and right click functions in Access runtime 6 16
Visible ppty on rpt 7 7
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question