Filter out years with incomplete data?

Russ Skinner

New Member
Joined
Jan 10, 2013
Messages
29
Trying to figure out a measure that will accomplish the following...

I have a single table in powerpivot that logs daily energy usage. Three columns: Date, Year , Energy usage. Several years worth of data, but some years do not have a full (365 days) worth of data. Current year a good example as we are only at November 13th.

I would like to be able to calculate the average annual (Jan 1st to Dec 31st) energy usage discarding data from incomplete years - need to filter them out. No data is simply recorded as blank cells in the table.

As a starting point I have thought about counting the non blank rows per year to identify those with less than 365, but how I then incorporate that into a measure to sum energy use and calculate the average consumption per year I have little idea?

Any ideas greatly appreciated.

Thanks,

Russ
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Assuming you won't be going back to add in historcal data regularly a calculate column may be the easiest way. Just add a column that counts rows per year (not sure how you handle leap years?) with a True/False condition for it being a full year. Then just use this as a page field/slicer in any reports.
 
Upvote 0

Forum statistics

Threads
1,223,969
Messages
6,175,691
Members
452,667
Latest member
vanessavalentino83

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