Conditional Formatting on Grouped Data
Posted: Tue Jan 05, 2016 3:26 pm
Hi,
I am trying to apply conditional formatting to data in a GroupFooterBand, but the conditions appear to be looking at all the data, rather than the grouping. I've attached some screenshots to aid my explanation (my organization doesn't want me to provide the report as its sensitive).
On the screenshot, the top left section shows the preview of the report. The bottom screenshot shows the designer view and the top right screenshot shows the conditional formatting applied to the text boxes in GroupFooterBand1.
To explain the report GroupHeaderBandData, DataBandFields and GroupFooterDataBand have no content. GroupHeader1 is grouped by a date field (date only, not date and time), GroupHeaderBand3 is used to pair up with GroupFooter2 - groupFooter2 is used to display every hour of the day. GroupFooter1 counts a total for every hour - this can be seen by the light green numbers below each set of dark green bars on the preview. Please note the light green is part of the condition which I believe is working incorrectly which i'll get to later.
The data stored in the DataEMR databand will store a number between 0 and 1. The dark green bars are conditions which formats each text box to be dark green if the data equals a 1. The GroupFooterBand1 totals the figures for each day. I can see that the figures from GroupFooter1 are accurate within their grouping - so looking at the first column which is labeled 00:00 using GroupFooterBand2 I can see that on the first grouping visible of the preview screenshot there is a total of 0, on the second which is for the date 03/12/2015 there is a total of 1 and for the 04/12/2015 there is a total of 1.
The conditional formatting applied to the GroupFooter1 text boxes is in the screenshot to the right of the attachment, which should only highlight the total if it is 2 or greater. As can be seen by the preview screenshot, 1's and 0's are also being highlighted. When we consider the first column for 00:00, none of these meet this condition. However when the figures for each groups totals 0 + 1 + 1 are totalled they equal 2, which does meet the condition and I believe this is why they are being highlighted. When I changed the condition from >=2 to >=4 the condition wasn't met and the cell was no longer formatted green. This means in GroupFooter1, the data displayed is accurate as per the grouping in GroupHeaderBand1 - the date, but the conditional formatting is ignoring this grouping!
Can you tell me why the conditional formatting is ignoring the grouping please, and how I can get around this?
[PLEASE NOTE: I'm having trouble posting this topic so I have removed the attachment and will attempt to upload later]
Thanks,
Ben
I am trying to apply conditional formatting to data in a GroupFooterBand, but the conditions appear to be looking at all the data, rather than the grouping. I've attached some screenshots to aid my explanation (my organization doesn't want me to provide the report as its sensitive).
On the screenshot, the top left section shows the preview of the report. The bottom screenshot shows the designer view and the top right screenshot shows the conditional formatting applied to the text boxes in GroupFooterBand1.
To explain the report GroupHeaderBandData, DataBandFields and GroupFooterDataBand have no content. GroupHeader1 is grouped by a date field (date only, not date and time), GroupHeaderBand3 is used to pair up with GroupFooter2 - groupFooter2 is used to display every hour of the day. GroupFooter1 counts a total for every hour - this can be seen by the light green numbers below each set of dark green bars on the preview. Please note the light green is part of the condition which I believe is working incorrectly which i'll get to later.
The data stored in the DataEMR databand will store a number between 0 and 1. The dark green bars are conditions which formats each text box to be dark green if the data equals a 1. The GroupFooterBand1 totals the figures for each day. I can see that the figures from GroupFooter1 are accurate within their grouping - so looking at the first column which is labeled 00:00 using GroupFooterBand2 I can see that on the first grouping visible of the preview screenshot there is a total of 0, on the second which is for the date 03/12/2015 there is a total of 1 and for the 04/12/2015 there is a total of 1.
The conditional formatting applied to the GroupFooter1 text boxes is in the screenshot to the right of the attachment, which should only highlight the total if it is 2 or greater. As can be seen by the preview screenshot, 1's and 0's are also being highlighted. When we consider the first column for 00:00, none of these meet this condition. However when the figures for each groups totals 0 + 1 + 1 are totalled they equal 2, which does meet the condition and I believe this is why they are being highlighted. When I changed the condition from >=2 to >=4 the condition wasn't met and the cell was no longer formatted green. This means in GroupFooter1, the data displayed is accurate as per the grouping in GroupHeaderBand1 - the date, but the conditional formatting is ignoring this grouping!
Can you tell me why the conditional formatting is ignoring the grouping please, and how I can get around this?
[PLEASE NOTE: I'm having trouble posting this topic so I have removed the attachment and will attempt to upload later]
Thanks,
Ben