Create different tablix per region

Hi there,

I need help please.

I have an ssrs report, that has 2 parameters.  Company and Product.  

Company A -    Product 1

Product 2

Company B - Product 3

Product 4 etc

I have one main dataset with data as follows:

Region, Product, Value

I need to somehow create a different tablix for each region, as we need to export the report to Excel, and each region needs to be a separate sheet, with sheet name  (Product - Region).

Iv'e created a region row grouping.  This works if I filter the group, and I hardcode the region name.  However not all the regions have data for a particular product.  This now produces an empty sheet.

Is there any way to make the group filter dynamic?  To somehow loop through the regions in the dataset and create a tablix for each region?

Or should I use a different approach?

Any help will be greatly appreciated.

Thank you
Larita de Swardt-SteynAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brendt HessSenior DBACommented:
How this is done depends on what version of SQL Server you are using.  If you are using 2008 R2 or later, see this technet article for an overview on how to use pagination to create multiple tabs in an Excel spreadsheet.

If you are using an earlier version of SQL Server, then one starting place is this discussion in the MS social forum for Reporting Services. Note that prior to 2008 R2, there was no real way to get the individual tabs named.
0
Brendt HessSenior DBACommented:
BTW, you should be able to suppress any empty pages (sheets) in SSRS,
0
ValentinoVBI ConsultantCommented:
"However not all the regions have data for a particular product.  This now produces an empty sheet."

Are you sure your dataset is returning what you expect it to return?  As far as I understand your request, it should not return records for regions that don't have any product data, otherwise you'll indeed end up with "empty" region groups.
0
Larita de Swardt-SteynAuthor Commented:
I found my own solution:

Create the group in your sql query.  Add the group to your tablix as a row group.

Set the pagename on the textbox properties.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Larita de Swardt-SteynAuthor Commented:
The only solution that worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.