![]() |
Sergey Kornilov admin 7/30/2013 |
While I don't have exact code for this task here is an article that features similar approach: |
N
|
nohope4you 7/30/2013 |
You could add in your sql query in phprunner: Hi If i had 8 columns in data sheet view eg year 1, year 2, year 3, year 4, year 5, year 6, year 7, year 8 and then added another column called growth how could i get this column to calculate the growth from one year to another based on the last2 entries. By last 2 entries i mean the last 2 results if they exist. So there may be data in year 1, year 2, year 3 for 1 user and I would want the calculated field to subtract year 2 from year 3. ANother user may have data in year 1, year 2, year 3, year 4, year5 so i would want the growth field to subtract year 4 from year 5. I have 50 users in one table with various progress across the fields. Any ideas? |
G
|
gdude66 author 8/5/2013 |
Got it using this code getdif.growth |