Starting with a crosstab query.
row is set to [zone] and group by
column is set to [date] and group by
value is set to [overtime] and sum
additional row is set to [roll] and *Here is the problem*
Before any adjustments made... the results would look like
Zone Monday Tuesday .......
1 10 5
2 15 6
3 5
The problem is that if the zone did not have overtime on the day the report ran no roll would show on the report.
Therefore, I set another row to [roll], but the problem is that the roll may change from day to day, therefore:
Zone Monday Tuesday... Roll
1 10 4
1 5 5
2 15 6 10
3 5 1
I have tried to use row set to [roll] using first or last but it is simply picking the highest (last) and lowest (first) number. Is there away to pick the roll number associated with the date last date that has a value, like for zone one use 5 as roll since that is the roll on Tuesday.
row is set to [zone] and group by
column is set to [date] and group by
value is set to [overtime] and sum
additional row is set to [roll] and *Here is the problem*
Before any adjustments made... the results would look like
Zone Monday Tuesday .......
1 10 5
2 15 6
3 5
The problem is that if the zone did not have overtime on the day the report ran no roll would show on the report.
Therefore, I set another row to [roll], but the problem is that the roll may change from day to day, therefore:
Zone Monday Tuesday... Roll
1 10 4
1 5 5
2 15 6 10
3 5 1
I have tried to use row set to [roll] using first or last but it is simply picking the highest (last) and lowest (first) number. Is there away to pick the roll number associated with the date last date that has a value, like for zone one use 5 as roll since that is the roll on Tuesday.