Not sure this is still an open question...
What I meant was: you can use a filter expression (like your day - 1 ) in a calculation view.
So you could e.g. take a scripted calc. view, calculate whatever you want with the input parameters and use the result to call the analytic view.