Firstly, thanks in advance.
I am trying to make a drill down style report in ssrs and was wondering if it was possible to display only the first n rows and hide the remaining rows in a table to be toggled open when needed.
For example, for the following table with primary key id, if i were to group results based on isopen? boolean, i should get firstly, all the stores that are open, and then all the stores that are closed.
I want only the first n open stores to be displayed and the rest to be hidden to be toggled open if needed. Same for the closed stores.
store, isopen, name, id
first, no, NULL, 1
second, yes, Julie, 2
second, yes, Mary, 3
first, yes, Katie, 4
third, no, NULL, 5
fourth, yes, Mark, 6
first, yes, Tony, 7
third, no, NULL, 8
My first thought was to try the "show or hide based on an expression" option under visibility in the row group's properties (results grouped by isopen). I tried using rownumber() in the expression to determine if rownumber is less than n, then display, else hide. It worked, it only showed the first n rows, but when i toggled open the rest, the first n were hidden. I want all the rows to be displayed when I toggle open the remaining rows.
Thanks very much in advance for any help.