reporting services - Keeping the structure of SSRS Table common -


i have dataset returns top 5 rows table , display data in ssrs table. need maintain 5 rows table structure if number of rows returned dataset 0 or less 5. how can acheive this.?

thanks

a couple of possibilities.


1) add 5 footer rows table , set rowvisibility expression = countrows() > 0 through = countrows() > 4.

enter image description here


2) hack query populates dataset such returns 5 rows.

e.g. suppose current query is

select top (5) name,                create_date   sys.objects order  create_date  

you change

with topfive      (select top (5) name,                         create_date,                         row_number() on (order create_date) rn            sys.objects          order  create_date) select tf.name,        tf.create_date   (values(1),               (2),               (3),               (4),               (5)) v(n)        left join topfive tf          on tf.rn = v.n  order tf.rn 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -