I have a report with two Groups. The Footer of Group 2 shows the Sum of numbers from the detail section. I would now like to show the median of those totals and display it in the footer of Group 1. Is this possible?
Yes you can. I for some reason thought I would have to do it programatically. But when you create a summary, previous summaries are available to select.
I was wrong that wasn't the previous summary available for me. I am still working on this. I have all of the totals from Group 2 in an array. Now I want to take that array and find the median and display it in the footer of Group 1.
Yeah, that's what I'm doing. Unfortunately, I don't see a way to use the median function on an array, so I will have to sort the array and take the center value.
You can write query in database. I am using Oracle PL/SQL. There is median function. Write a subquery (or inner query) to get sum with groupings, then write median for outer query to get median. Make sure you have all the fields or columns you need and add it to Add Command in Crystal, then work from there.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.