February 27, 2013 at 8:02 am
I need to be able to do the following
Year 2012 2013
Month 11 12 1 2 3
Beginning 0 2 4 18 40
Opened 5 11 16 65 98
Completed 3 9 2 43 76
Ending 2 4 18 40 62
Ok,
Beginning = ending of previous month
Opened = tablefield
Completed = tablefield
Ending = beginning + opened - completed
I am struggling with getting the beginning formula/calculation correct, any help would be GREATLY appreciated.
February 27, 2013 at 8:15 am
pungigi (2/27/2013)
I need to be able to do the followingYear 2012 2013
Month 11 12 1 2 3
Beginning 0 2 4 18 40
Opened 5 11 16 65 98
Completed 3 9 2 43 76
Ending 2 4 18 40 62
Ok,
Beginning = ending of previous month
Opened = tablefield
Completed = tablefield
Ending = beginning + opened - completed
I am struggling with getting the beginning formula/calculation correct, any help would be GREATLY appreciated.
Hi and welcome to SSC. Your question does not have anywhere near enough details for anybody to offer much help. Please take a few minutes and the article at the first link in my signature about best practices when posting questions.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply