gotcha...i've got good news and bad news...i'm assuming that you still want to show the rows with the zeroes as well. bad news is that you can't do this directly in a cross-tab unless you were to order the cross-tab with the summary ascending...even then it does require you to build a formula to make this calculation.
however, good news, you can make this calculation and then pass this to your cross-tab by ordering your groups in the report (not the grouping in the cross-tab) based on the summary value ascending and then adding a formula that does the median calculation.
please see the attached report. extract the contents and change the .txt extension to .rpt. in this example,
- there is a group on the same value that the cross-tab row is using.
- there is a summary based on the same value that the cross-tab is using.
- an array tracks the summaries only if they are greater than zero
- the formula will output the moving median
- this variable is passed to the cross-tab which must be in the report footer
- the variable uses the Display String on the cross-tab's summary in the bottom right
as mentioned before, if you ordered your cross-tab in the order of your summary, ascending, then you could do this calculation in the cross-tab itself. it will not work though if you're not using that particular order.
i hope this helps.
jamie