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
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