Its hard to give detailed help without more information. Are you using a master calendar? In general, you would add set expression filters to the linest() function and/or the sum() functions inside the Aggr() expression.
I suggest that you upload a small sample file that contains enough data to get more detailed help.
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein