dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Rolling Averages - sqlserver-programming

This is a discussion on Rolling Averages - sqlserver-programming ; Hi Guys I need to calculate the rolling (moving average) of Cost by each doctor for 5 years on a 12 month period in order to smooth out the graph and add a trend line. Guys here is my sample ...



Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 04-01-2009, 09:48 PM
Database Newbie
 
Join Date: Apr 2009
Posts: 1
nutsbuds is on a distinguished road
Default Rolling Averages

Hi Guys

I need to calculate the rolling (moving average) of Cost by each doctor for 5 years on a 12 month period in order to smooth out the graph and add a trend line.

Guys here is my sample data:

Year Month Cost Doctor
2000 1 $20000 A
2000 2 $2111 B
.
.
2005 1 $cost A

For the doctors I just need to show a count of doctors for that time period.

Have i made myself clear?/

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 09:47 AM.