Limit number of result or rows returned in BO using WebI

夙愿已清 提交于 2019-12-13 02:13:32

问题


How do I to limit the number of results/rows returned from a query in WebI other than using custom SQL? Possibly something like 'Top 100' records.

I can't change the 'Limit resultant size' in the parameters as I do not want it to affect any other reports.

Thank you in advance :)


回答1:


In Web Intelligence, you can set the number of rows that the query provider should retrieve. This setting is called the Max rows retrieved. From the Webi user guide:

The Max rows retrieved query property determines the maximum number of rows of data that are displayed when a query is run.

If you only need a certain amount of data, you can set this value to limit the number of rows of data in your document.

Max rows retrieved is applied at the database level if the database supports it. If not, rows are discarded after retrieval from the database.

Note: this setting is linked to the query, not the document as a whole. In other words, if your document has multiple queries, you have to set the Max rows retrieved for each of them.




回答2:


If you define your report on a Universe, you can also limit the size of the result set in Universe Parameters -> Controls.



来源:https://stackoverflow.com/questions/20968696/limit-number-of-result-or-rows-returned-in-bo-using-webi

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