LECOMTE FRANCOISE 2 Posted August 20, 2020 Share Posted August 20, 2020 I have a table which contains Date-Time value and a measure of Temperature I would like to be able to calculate the sum of the temperature between 2 dates. . Date-Time Temperature Cumul I Want Cumul I can do 01/01/2020 05:00 10 10 01/01/2020 05:10 11 21 21 01/01/2020 05:11 14 35 35 02/01/2020 05:20 18 18 53 02/01/2020 05:25 24 42 77 02/01/2020 05:30 23 65 90 03/01/2020 05:35 25 25 115 03/01/2020 05:40 17 42 132 03/01/2020 05:45 9 51 141 Do you have any idea to do that The idea is to calculate the "ssum of degre-days'' Link to comment Share on other sites More sharing options...
Gaia Paolini Posted August 20, 2020 Share Posted August 20, 2020 try this: first create a column e.g. called [day] with the day of the year: DayOfYear([Date-Time]) then sum like this: sum([Temperature]) over (Intersect([day],AllPrevious([Date-Time]))) Link to comment Share on other sites More sharing options...
Fabian Duerr Posted August 20, 2020 Share Posted August 20, 2020 1st create a date column to group your data: date([Date-Time]) Then use:Sum([Temperature]) OVER (Intersect(AllPrevious([Date-Time]),[Date])) Link to comment Share on other sites More sharing options...
Fabian Duerr Posted August 20, 2020 Share Posted August 20, 2020 I was just a little too late :) Link to comment Share on other sites More sharing options...
LECOMTE FRANCOISE 2 Posted August 20, 2020 Author Share Posted August 20, 2020 it works perfectly ! thanks for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now