Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Visibility in a Matrix

Author  Topic 

huynhtl
Posting Yak Master

107 Posts

Posted - 2008-12-05 : 13:56:41
Is there a way to have matrix data format to show up regardless if there's not data in it? I have two matrix in one report that have lname in row, age in column (child, adult), $$ in data and the parament base on month. I would run my report and click on month, and certain have child and adult to show up, but certain month doesn't. This is what showing up right now:

matrix1
Lname Adult Children Total
Smith 21 5 $50
Jones 35 10 $150
Miller 99 7 $300

matrix2
Lname Adult Total
James 60 $15
Gosebe 75 $35
West 35 $75

This is what I want:

matrix1
Lname Adult Children Total
Smith 21 5 $50
Jones 35 10 $150
Miller 99 7 $300

matrix2
Lname Adult Children Total
James 60 $15
Gosebe 75 $35
West 35 $75

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-05 : 23:35:39
this needs to done at your query end. Matrix being dynamic renders the columns based on your data. so if data for prescribed period doesn't have some values (like Children in above case), you wont get that column in matrix. so for getting it, you need to have a master table containing the column group values (Children ,Adult,...) and using it take left join with current tables. this will ensure you will get column values regardless of data and get values as 0 in case you dont have data.
Go to Top of Page

huynhtl
Posting Yak Master

107 Posts

Posted - 2008-12-08 : 11:17:05
Perfect! Thanks.....
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-09 : 03:23:46
welcome
Go to Top of Page
   

- Advertisement -