Some more detail ....
I'm creating 4 periods - Previous, Current, Next, Future. They all start on a Tuesday, so Previous is prior Tuesday to current Tue, Current is current Tue to nxt Tue, Next is nxt Tue to the week after nxt Tue, Future is week after nxt Tues, until 99 days into the future (based off system date).
ie. date(datetime(minimum(LastFullWeek)+ 2)) is calc for Previous week. I simply add 7 to the number at end to create Current, 16 to get next, and so on ...
I then have a grouping calculation that classifies each incident as one of the 4 above.
ie.
if {cm3rm1.sched.outage.start} < {@CALC_period_current} then 'i) Previous Period'
else if
{cm3rm1.sched.outage.start} < {@CALC_period_next} then 'ii) Current Period'
else if
{cm3rm1.sched.outage.start} < {@CALC_period_future} then 'iii) Next Period'
else if
{cm3rm1.sched.outage.start} > {@CALC_period_next} then 'iv) In the Future'
I then group the report based on these periods. This, by default, sorts incidents by date in each period. This is all fine and well, but I need to have the primary sort on a field called "impact" for just my Next/Future groups, with things remainging the same for my Previous/Current.
hoping this makes sense...