I'm trying to apply conditional formatting to a crosstab in reportnet.
My crosstab is employees by days, with the daily load rate (ie 0 - 1 formatted as a percentage) as the measure. I have a conditional variable (string) called allocation, defined as follows:
case
when load > 1 then 'Overallocated'
when load > 0 and load < 1 then 'Partially allocated'
when load > 0 then 'Unallocated'
when load is null then 'Unallocated'
when load is missing then 'Unallocated'
else 'Unallocated'
I have applied the variable as a conditional style to the crosstab measure cell, and applied conditional cell background colour formatting for each of the allocation variable outcomes (ie. Dark red for Overallocated, yellow for partially allocated, red for unallocated).
The problem is that all my 0 values are not being formatted with a red background - they are just appearing with the white default but all the other formatting is being applied. Ie...this is what is happening:
If the employee record for the day has a loading of > 1, then formatting is correct (ie dark red)
If the employee record for the day has a loading of 1, then formatting is correct (ie green)
If the employee record for the day has a loading of >0 and <1, then formatting is correct (ie yellow)
If the employee has no record for the day, then formatting is correct (ie red)
If the employee record for the day has a loading of 0, then formatting is not being applied (and the cell stays white).
In an attempt to try and fool reportnet around this problem, I also formatted the default 'Other' value for the variable to display red, and it still isnt colouring the cell.
Anyone have ideas on what the hell is going on here?
My crosstab is employees by days, with the daily load rate (ie 0 - 1 formatted as a percentage) as the measure. I have a conditional variable (string) called allocation, defined as follows:
case
when load > 1 then 'Overallocated'
when load > 0 and load < 1 then 'Partially allocated'
when load > 0 then 'Unallocated'
when load is null then 'Unallocated'
when load is missing then 'Unallocated'
else 'Unallocated'
I have applied the variable as a conditional style to the crosstab measure cell, and applied conditional cell background colour formatting for each of the allocation variable outcomes (ie. Dark red for Overallocated, yellow for partially allocated, red for unallocated).
The problem is that all my 0 values are not being formatted with a red background - they are just appearing with the white default but all the other formatting is being applied. Ie...this is what is happening:
If the employee record for the day has a loading of > 1, then formatting is correct (ie dark red)
If the employee record for the day has a loading of 1, then formatting is correct (ie green)
If the employee record for the day has a loading of >0 and <1, then formatting is correct (ie yellow)
If the employee has no record for the day, then formatting is correct (ie red)
If the employee record for the day has a loading of 0, then formatting is not being applied (and the cell stays white).
In an attempt to try and fool reportnet around this problem, I also formatted the default 'Other' value for the variable to display red, and it still isnt colouring the cell.
Anyone have ideas on what the hell is going on here?