I have an SSRS report which is failing to export to excel when the row count is greater than the Excel 2003 limit of 65536
The report already has a grouping level with a group footer.
I have tried to add an extra grouping level with a page break on the expression
=ceiling(rownumber(nothing)/65536)
However, this counts the detail rows, but does not take into account the group footer. So the rownumber evaluates to 53000 while the actual number of rows has exceeded 65536.
The following expression
=ceiling(RunningValue(Fields!myfirstgroup.Value, CountDistinct, Nothing) + rownumber(nothing) / 65536 )
will give me the actual row count including the group footers, but SSRS will not allow a group on a running value expression.
How can I force a page break after 65536 rows to allow an export to Excel? I had hoped to accomplish this in the report definition, and avoid adding a calculated page number in the query .
Any help much appreciated
* UPDATE - Sample data *
ItemDescription , Location , Quantity
Red lorry , M25 , 5
Red lorry , M6 , 2
Yellow lorry , M1 , 3
Report has a grouping on ItemDescription with a total for that item, so it will show
ItemDescription , Location , Quantity
Red lorry , M25 , 5
Red lorry , M6 , 2
Total for Red Lorry,7
Yellow lorry , M1 , 3
Total for Yellow Lorry,3
This means from my 3 rows of data, I have 5 report rows including detail and footer rows. SSRS can tell how many details rows are in my dataset, but I need to take the footers into account for a page break.