Bradford847
MIS
Is there a way (I was thinking arrays possibly) that I can manually calculate the median for a group so that it can be used in the conditional highlighter?
I am trying to add conditional highlighting (traffic lights basically) to some values based on how far away they are, in percentage terms, from a median. The median needs to be calculated whilst ignoring zero values.
The out put should look something like
GH1 Customer Value 1 Value 2
Detail A 0 10*
Detail B 2* 12
Detail C 4 0
Detail D 6* 14*
GF 1 Median 4 12
If the threshold was +- 5% then the asterixed numbers should have a different background.
The report groups customers together and displays several different values. I use a running total field to calculate the median for each type of value, with a formula to exclude the zero’s, and display it in the group footer. This is fine. The problem comes when I try to use the median to conditionally change the formatting of the details. The median in the footer cannot be used to calculate the variance from the median, and if I try to use the median in the detail then the median is changed with every detail row.
Any help very gratefully received as I have started to hurt my head by banging it against the wall so often!
I am trying to add conditional highlighting (traffic lights basically) to some values based on how far away they are, in percentage terms, from a median. The median needs to be calculated whilst ignoring zero values.
The out put should look something like
GH1 Customer Value 1 Value 2
Detail A 0 10*
Detail B 2* 12
Detail C 4 0
Detail D 6* 14*
GF 1 Median 4 12
If the threshold was +- 5% then the asterixed numbers should have a different background.
The report groups customers together and displays several different values. I use a running total field to calculate the median for each type of value, with a formula to exclude the zero’s, and display it in the group footer. This is fine. The problem comes when I try to use the median to conditionally change the formatting of the details. The median in the footer cannot be used to calculate the variance from the median, and if I try to use the median in the detail then the median is changed with every detail row.
Any help very gratefully received as I have started to hurt my head by banging it against the wall so often!