How to set Fixed Rows of Tablix in SSRS

谁都会走 提交于 2019-12-23 06:58:31

问题


How to do the tablix fix rows? I need to fix the report to maximum 5 rows, if record more than 5 rows will not show . If records is only 3 record, first,second & third rows will place the data and 4 & 5 rows will leave it blank.


回答1:


Ideally you should achieve it in SQL query or stored proc.

However if you want to achieve it in RDL then you have to use RowNumber function in expression.Create a Row group and then restrict data set.Use expression =CEILING(RowNumber(Nothing)/5) Please have a look at below link for your reference.

http://www.sqlchick.com/entries/2010/9/11/displaying-fixed-number-of-rows-per-ssrs-report-page.html



来源:https://stackoverflow.com/questions/26856855/how-to-set-fixed-rows-of-tablix-in-ssrs

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