It is because aggregation without advanced aggregation function is not allowed in dimension.
What you should do is
1. Create 2 variables. 1 to store the Start and other to store the End. Like below
vMin = min(startTimeStamp)
vMax = max(endTimeStamp)
Now replace the Max and Min function in your dimension expression with this variables.
if(dataTimeStamp <=$(vMin) AND dataTimeStamp >= $(vMax), dataTimeStamp)
Hope this helps.
I actually thought about that but didn't try it.
I did it, and it's still giving me fits, though it's a little better.
While the graph does display correctly with no selections, when an id is selected, it breaks (though no invalid dimension error).
After further review, the variable is not calculating correctly:
I added a couple KPIs to the page to view,
min(startTimeStamp) shows the accurate date while $(vMinStart) shows something completely different (1905 date).
Weird because I added the variable correctly it would seem.
when I do the same thing in the KPI, it produces a different result.