Hi all,
I’m looking for a way to calculate a revenue prediction based on all records in a table.
Table 1: All orders, with a weeknumber
Table 2: Weeks, with linked orders and revenue. The revenue is rolled up as {Revenue} and the week is {Week}.
In Table 2, I’d like a field that sums up the revenue up to that week. So, record 12 (for week 12) should roll up all weeks before 12 but not those afterwards. Even nicer would be to roll up only the X weeks prior to {Week}.
I cannot get my head around how to roll up the revenue conditionally. Any suggestions would be very welcome.