Hi all,
I'd like some help w/ a rollup field.
Table A is a summary record for an order and table B has the line items of an order. Each line item can have a different delivery date. I'd like to create a rollup field in table A that calculates the difference between the min and max delivery dates of all line items in table B.
This rollup field presently looks like: DATETIME_DIFF(MAX(values),MIN(values),'days'). When I do this, I always get values of 0 returned. I suspect that I cannot use a datetime_diff function within a rollup but I'm not getting an error so I wanted to confirm? (I also just tried max(values) - min(values) but that doesn't work either, (also returns 0s). I'd rather have a single field in my data to perform this function over 3 (one for min, one for max, one for the difference). Any suggestions / confirmation that this just isn't possible using dates?
Thanks!