Is there a way to create a tablix group using multiple database fields?
I think the old PUBS database (book sales and authors) would be a good example for this. I no longer have PUBS so here's an example of the type of SQL data:
select 'Fiction' as FictNon ,'US' as Country, 'Online' as RetailerType, 'English' as BookLanguage, 'Horror' as Category, 'Soft' as BookCover, 12.95 as Sales union all select 'Fiction' as FictNon ,'FR' as Country, 'Retail' as RetailerType, 'French' as BookLanguage, 'Comedy' as Category, 'Hard' as BookCover, 19.95 as Sales union all select 'NonFiction' as FictNon ,'US' as Country, 'Retail' as RetailerType, 'English' as BookLanguage, 'Biography' as Category, 'Hard' as BookCover, 22.89 as Sales union all select 'Fiction' as FictNon ,'CA' as Country, 'Retail' as RetailerType, 'English' as BookLanguage, 'Horror' as Category, 'Soft' as BookCover, 12.95 as Sales union all select 'Fiction' as FictNon ,'CA' as Country, 'Retail' as RetailerType, 'French' as BookLanguage, 'Horror' as Category, 'Soft' as BookCover, 15.95 as Sales union all select 'Fiction' as FictNon ,'FR' as Country, 'Retail' as RetailerType, 'French' as BookLanguage, 'Romance' as Category, 'Hard' as BookCover, 19.95 as Sales union all select 'NonFiction' as FictNon ,'US' as Country, 'Online' as RetailerType, 'English' as BookLanguage, 'Biography' as Category, 'Soft' as BookCover, 12.59 as Sales
This data is for sales of books. Each book can belong to many dimensions that we want to track. The actual data comprises several years and is over 200,000 rows. The end users want a SSRS report on the various dimensions like:
Fiction/Non-Fiction
Fiction 81.75
NonFiction 35.48
Country Sales
CA 28.90
FR 39.90
US 48.43
BookLanguage Sales
English 61.38
French 55.85
I could create multiple datasets but that would just be querying and returning the same data over and over.
The only way I can think of to accomplish this with one query is to create a report with many separate tablixes and set the group per tablix to group on the desired dimension. The above example output is very simplified, there is more complexity to it. If I have to use a separate tablix per dimension then any changes or error correction must be done many times. There are currently about 12 dimensions with more likely to be added in the future.
So is there a way to create a tablix group based on multiple dataset fields?