I have a report that has multiple parameters, I want to add a parameter so that a person can tell it to pull the top # or all of a certain group, what would be the easiest way to do this???
Set up a number parameter {?topN} and in the prompt text, instruct the user to enter 0 to see all groups, or to enter the number of top groups he/she would like displayed. Then go to report->group sort->topN->where N is->x+2 and enter:
This goes right IN the group sort screen. After you select topN, a space appears below--leave that as is, and instead go into the x+2 button next to it and enter the formula there. The formula overrides whatever is in the box.
ALSO, my fault, forgot to add that I have 2 subreports on this report that also need to show top n, would I do the same thing for the sub reports as I did for the main.
Once you have created the parameters in the subs and set up the topNs in each, you can link the parameter from the main report to the parameter in each of the subs by using the dropdown in the lower left of the subreport linking screen to select {?topN}, not the default {?pm-?topN}.
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.