Hi,
I have two tables. One is daily data (A) the other (B) has two date columns, a START and END date and a third column that contains some string.
E.g. - table B might look like so:
START,END,TEMP
01/01/2012,01/04/2012,"COLD"
02/04/2012,05/06/2012,"HOT"
etc.
If the temp column were numeric I could use sumx() and two filters to get the values across:
=sumx(filter(filter(B,DATEVALUE(Data[Date])>=B[Start]),DATEVALUE(Data[Date])<=B[End]),B[TEMP])
but i'm stuck as to how I get a string across. I haven't made a relationship as it didn't seem appropriate for this problem.
Any advice is much appreciated
I have two tables. One is daily data (A) the other (B) has two date columns, a START and END date and a third column that contains some string.
E.g. - table B might look like so:
START,END,TEMP
01/01/2012,01/04/2012,"COLD"
02/04/2012,05/06/2012,"HOT"
etc.
If the temp column were numeric I could use sumx() and two filters to get the values across:
=sumx(filter(filter(B,DATEVALUE(Data[Date])>=B[Start]),DATEVALUE(Data[Date])<=B[End]),B[TEMP])
but i'm stuck as to how I get a string across. I haven't made a relationship as it didn't seem appropriate for this problem.
Any advice is much appreciated
Last edited: