I think the key reason I am having trouble getting a % within the matrix is that I have row groupings which restrict the available data, at the time that I need to make a comparison between that row groupings total and the ungrouped data's metric. or said another way, is it possible to create an switch statement that says, give me a count of all "External" with ReferralID=1 and divide that by a count of All Referral IDs and pivot by month. Am willing to use a second dataset or use any clever mechanism to make it happen. would love someone to review and see if they have ideas on this.how to add % rows to a matrix?Need SSRS to look like this. Ref Type--------------row description----------------Jan----------Feb----------Mar----------Apr--->1--------------------------contacted--------------------2-------------1-------------1-----------0----->1-------------------------%contacted-----------------66%----------100%---------50%----------0%---->1--------------------------interviewed------------------1-------------0-------------1------------1----->1-------------------------%interviewed---------------33%----------0%-----------50%----------100%--> 2--------------------------contacted-------------------3-------------5--------------2-----------3----->2-------------------------%contacted-----------------75%---------83%----------100%---------100%-->2--------------------------interviewed-----------------1-------------1---------------0-------------0----->2-------------------------%interviewed---------------25%----------16%----------0%-----------0%----> I am able to build the matrix but without the % rows. I am using an IIF expression to accomplish that as follows:[code="plain"]=iif(Fields!row_description.Value = "Internal", count(Fields!ReferralID.Value), count(Fields!ReferralID.Value))[/code]But I don't know how to build it out to return the % ROWS underneath corresponding row_descriptions :RDL attached.DDL for table and data[code="plain"]--create tableCREATE TABLE [dbo].[Referral]( [ReferralID] [INT] NOT NULL, [RefDate] [SMALLDATETIME] NULL, [RefType] [VARCHAR](20) NULL, [row_description] [VARCHAR](20) NULL)--data for tableINSERT INTO [dbo].[Referral](ReferralID, [RefDate] ,[RefType], [row_description])VALUES(1,'2015-01-01',1,'contacted'),(2, '2015-01-01',1,'interviewed'),(3,'2015-01-01',2,'interviewed'),(4,'2015-01-01',2,'contacted'),(5,'2015-01-01',2,'contacted'),(6,'2015-02-01',1,'contacted'),(7,'2015-02-01',2,'contacted'),(8,'2015-02-01',2,'interviewed'),(9,'2015-02-01',2,'contacted'),(10,'2015-02-01',2,'contacted'),(11,'2015-01-15',1,'contacted'),(12,'2015-02-20',2,'contacted'),(13,'2015-01-15',2,'contacted'),(14,'2015-02-20',2,'contacted'),(15,'2015-03-01',1,'interviewed'),(16,'2015-03-12',2,'contacted'),(17,'2015-03-04',1,'contacted'),(18,'2015-03-22',2,'contacted'),(19,'2015-04-01',1,'interviewed'),(20,'2015-04-12',2,'contacted'),(21,'2015-04-04',2,'contacted'),(22,'2015-04-22',2,'contacted'); [/code]
↧