How to limit the number of rows displayed in a table?

你说的曾经没有我的故事 提交于 2019-12-11 03:09:21

问题


I have a Data Source, a Data Set and a Data Cube. The data cube has a group and a summary field with a count function.

In the report I have a table sorted by that summary field. This table has a lot of rows (~1000) but I only want to show the first 5.

How can I limit the number of rows displayed?


回答1:


Both tables and cross-tables have a top N operator allowing to filter rows as your requirement. In your case this is a cross-table based on a datacube:

Select the cross-tab -> filter tab -> Add -> Select your measure -> Operator "Top N" (or "Bottom N", depending on the sort direction of your crosstab)

Please note this approach is much less efficient than grouping and filtering in a dataset query, if it is based on a database.



来源:https://stackoverflow.com/questions/29651836/how-to-limit-the-number-of-rows-displayed-in-a-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!