Getting a PivotChart to report all weeks

rmb4466

New Member
Joined
Feb 1, 2010
Messages
11
I've got a list of samples and would like to chart them, summarized by week number. Some weeks have 0 samples, some weeks have multiple samples. When I create a PivotChart, I can group it to summarize by weeks; however, it only displays weeks with samples and omits weeks with 0 samples. To the undiscerning eye, this makes it look like there have been a lot more samples than there really have been. I can create a larger list of all weeks represented and have it look up which weeks have samples, but this gets laborious when I start having multiple different sample types.

Is there a way to create a chart that is grouped by week number that displays all weeks from the start date to the end date, including those with 0 samples?

Here's an example much simpler, but analogous to my dataset:
[TABLE="width: 355"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]ID[/TD]
[TD]Year[/TD]
[TD]Weeknum[/TD]
[TD]Year.WeekNum[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2017[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]2017.43[/TD]
[TD="align: right"]26-Oct-17[/TD]
[TD]LR[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]2017[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]2017.44[/TD]
[TD="align: right"]31-Oct-17[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]2017[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]2017.51[/TD]
[TD="align: right"]23-Dec-17[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2018.01[/TD]
[TD="align: right"]3-Jan-18[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2018.01[/TD]
[TD="align: right"]4-Jan-18[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]2018.05[/TD]
[TD="align: right"]30-Jan-18[/TD]
[TD]LR[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]2018.05[/TD]
[TD="align: right"]3-Feb-18[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]2018.23[/TD]
[TD="align: right"]4-Jun-18[/TD]
[TD]LR[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]2018.24[/TD]
[TD="align: right"]16-Jun-18[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]2018.24[/TD]
[TD="align: right"]14-Jun-18[/TD]
[TD]Kit[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD="align: right"]2018[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]2018.27[/TD]
[TD="align: right"]3-Jul-18[/TD]
[TD]Kit[/TD]
[/TR]
</tbody>[/TABLE]

Thanks.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top