I have a stored procedure that returns 100 rows. I use this procedure in SSRS to build a dataset.
Now I have two tablix, one named Top 5 which shows the top 5 rows of my dataset and one named Top 10 which shows the top 10 rows. In my stored procedure, I do Select Top X
where X is controlled by a variable.
Can I set it up so that both tablix use the same dataset, but one gets a parameter with a value of 5 and uses that for the X and one get a value of 10 to replace the X with. Is this possible and if so, how?