Correlation Matrix?

Jan 29, 2008

Hello everybody;

One of my friend showed me a correlation matrix rendered from STATISTICA. This matrix represents correlations between the questions of an exam that has 24 questions. Teacher asked them to discover the relationships between each question that both answered true or false.. Can we make a graph or something like that in AS?

Here is the screenshot extracted from Word.http://www.imageturk.com/goster.php?res=1ee9826a924e7c51a44er.jpg

View 3 Replies


ADVERTISEMENT

Correlation Error

Mar 24, 2008

I'm have the biggest issue here that I cannot resolve. I have a select command that I'm building myself in code behind. When it gets up to the third line of code as shown below I get an error that says "Tables or functions 'Owner' and 'Owner' have the same exposed names. Use correlation names to distinguish them." I have been searching for the past few hours on this and not comming up with anything. If someone could please help me on what I'm doing wrong I would appreciate it. Thank You
Dim strProjectOwnerSelectCommand As String = "SELECT ProjectOwner.ID, ProjectOwner.CreateDateTime, ProjectOwner.ProjectID, ProjectOwner.OwnerID, Owner.Name AS OwnerDescription FROM ProjectOwner WITH(NOLOCK) INNER JOIN Owner ON ProjectOwner.OwnerID = Owner.ID WHERE (ProjectOwner.ProjectID = " & hdfProjectID.Value & ") AND (ProjectOwner.OwnerID = " & intUserID & ")"
sdsProjectOwner.SelectCommand = strProjectOwnerSelectCommand
Dim lblTasksID As Label = CType(gvTasks.Rows(hdfTaskID.Value).FindControl("lblTasksID"), Label)

View 2 Replies View Related

[Resolved] Use Correlation Names

Jun 18, 2008

I have a working sp:

SELECT dbo.Job.CompanyJobId, dbo.Item.UnitOfMeasure, dbo.Job.Name, dbo.Job.ChangeDate,
dbo.Region.CompanyRegionID, dbo.Job.Active,
sum(case dbo.SourceType.CompanySourceTypeId WHEN 'MA' then dbo.ProductionEvent.AlternateQuantity ELSE 0 END) AS material,
sum(case dbo.SourceType.CompanySourceTypeId WHEN 'PR' THEN dbo.ProductionEvent.Quantity ELSE 0 END) AS production

FROM dbo.job
inner join dbo.Event ON dbo.Job.JobGuid = dbo.Event.JobGuid
inner join dbo.ProductionEvent on dbo.Event.EventGuid = dbo.ProductionEvent.EventGuid
left outer join dbo.Product ON dbo.ProductionEvent.ProductGuid = dbo.Product.ProductGuid
left outer JOIN dbo.Item ON dbo.Event.ItemGuid = dbo.Item.ItemGuid
inner JOIN dbo.Source ON dbo.ProductionEvent.SourceGuid = dbo.Source.SourceGuid
inner JOIN dbo.SourceType ON dbo.Source.SourceTypeGuid = dbo.SourceType.SourceTypeGuid
left OUTER JOIN dbo.Region ON dbo.Job.RegionGuid = dbo.Region.RegionGuid

WHERE dbo.Job.CompanyJobId = 3505048 and dbo.Item.UnitOfMeasure = 'TN'
and(dbo.SourceType.CompanySourceTypeId = 'PR' or dbo.SourceType.CompanySourceTypeId = 'MA')

GROUP BY dbo.Job.CompanyJobId, fMeasure, dbo.Region.CompanyRegionID,
dbo.Job.Name, dbo.Job.ChangeDate, dbo.Job.Active

Now I need to inser another join like this:

dbo.Event ON dbo.EmployeeLaborEvent.EventGuid = dbo.Event.EventGuid INNER JOIN

and I get error:

Server: Msg 1013, Level 15, State 1, Line 15
Tables or functions 'dbo.Event' and 'dbo.Event' have the same exposed names. Use correlation names to distinguish them.

Not sure what this means. Thank you.

View 7 Replies View Related

Update Statement Using A Subquery With Correlation

Apr 18, 2008

Hello

I am new to this forum and pretty new to running queries in SQL Server. I have been doing it for years on an iSeries platform and the following update statement would definitely work in SQL/400....but it does not in SQL Server 2000. Any help would be appreciated.

UPDATE TESTDTA.F0101 X
SET (ABAC07, ABAC12, ABAC28) =
(SELECT AIAC07, AIAC12, AIAC28 FROM TESTDTA.F03012
WHERE AIAN8 = X.ABAN8)
WHERE EXISTS(SELECT AIAC07 FROM TESTDTA.F03012
WHERE AIAN8 = X.ABAN8)

...and here are the errors

Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'X'.
Server: Msg 156, Level 15, State 1, Line 5
Incorrect syntax near the keyword 'WHERE'.

View 2 Replies View Related

Msg 1013 Select Not Working -- Correlation Names?

Apr 7, 2006

I am trying to run a select query and getting the following error:
Server: Msg 1013, Level 15, State 1, Line 12
Tables or functions 'PatientVisit' and 'PatientVisit' have the same exposed names. Use correlation names to distinguish them.

Not sure what I am doing wrong! Here is the query. Can anyone point me int the right direction?

SELECT Batch.Entry AS [Date Of Entry], PatientProfile.[Last] + ', ' + PatientProfile.[First] AS Name,
MedLists.Description AS [Adjustment Type], PatientVisit.TicketNumber, PatientVisitProcs.Code AS [Procedure Code],
TransactionDistributions.Amount AS [Adjustment Amount], PatientVisitProcs.DateOfServiceFrom,
ISNULL(CONVERT(varchar(255), Transactions.Note), ' ') AS Notes,
DoctorFacility.DotID, DoctorFacility.ListName as DrName, PatientVisit.DoctorID as DrID
FROM PaymentMethod
INNER JOIN VisitTransactions ON PaymentMethod.PaymentMethodId = VisitTransactions.PaymentMethodId
INNER JOIN Transactions ON VisitTransactions.VisitTransactionsId = Transactions.VisitTransactionsId
INNER JOIN TransactionDistributions ON Transactions.TransactionsId = TransactionDistributions.TransactionsId
INNER JOIN Batch ON PaymentMethod.BatchId = Batch.BatchId
INNER JOIN PatientVisit ON VisitTransactions.PatientVisitid = PatientVisit.PatientVisitId
Inner Join PatientVisit ON DoctorFacility.DoctorFacilityID = PatientVisit.DoctorID
INNER JOIN PatientProfile ON PatientVisit.PatientProfileId = PatientProfile.PatientProfileId
INNER JOIN MedLists ON Transactions.ActionTypeMId = MedLists.MedListsId
INNER JOIN PatientVisitProcs ON TransactionDistributions.PatientVisitProcsId = PatientVisitProcs.PatientVisitProcsId

Any Idea on how to fix it up? Thanks

View 1 Replies View Related

Error 1012: The Correlation Name '%' Has The Same Exposed Name As Table '%'.

Jul 20, 2005

Im trying to find the error in this statement:CREATE PROCEDURE STP_selectmainASselect a.inventoryid, b.firstname, b.lastname, art.title, art.medium,a.cost, a.inventoryid, a.receivedate, a.dimensions,a.reference, art.provenance, sum(c.restorationcost),sum(d.framingcost), sum(e.cost)from art as a left outer join artist as b on a.artistid =b.artistid,a left outer join restoration as c on a.inventoryid =c.inventoryid,a left outer join outframing as d on a.inventoryid =d.inventoryid,a left outer join basiccosts as e on a.inventoryid =e.inventoryidgroup by a.inventoryid, b.firstname, b.lastname, a.title, a.medium,a.cost, a.inventoryid, a.receivedate, a.dimensions, a.reference,a.provenanceorder by a.inventoryid descGOeveytime I do a syntax check on it I get this error.error 1012: the correlation name 'a' has the same exposed name astable 'a'.Whats the syntax to fix this?thanks-Jim

View 1 Replies View Related

Using Correlation Names - Same Table Referenced 4X In Select

May 18, 2015

I have a "case" table describing what type of social worker case and who performed work on the case. Four case workers are referenced within each case and all workers belong to the "worker" table. I am trying to present the case worker name on a detailsView rather then the much simpler task of showing the worker's index stored within the case. I can't seem to get the correlation names working.

SelectCommand="SELECT [ReportID], [RecCreated], tblVCaseType.Description AS cType, [IntakeDate], tblVCounty.Description AS County, [Abuse], [Neglect], [Dependency], [AfterHours],
[Screenout], tblVScreenOutcome.Description AS Outcome, [Closed], [ClosedDate], iWorker.[Worker Name], cWorker.[Worker Name] ,
tblVAssessmentType.Description AS aType, tblVTimeframe.Description AS tFrame, tblVDisposition.Description AS Dispo , tblVProgramXfer.Description AS Xfer,

[Code] ...

Getting only one worker name is easy. But, I need all four. I have tried many versions without success. The error from this version is repeated 4X:

The multi-part identifier "tblVWorker.ID" could not be bound.

View 5 Replies View Related

Update Statement - Correlation Name Is Specified Multiple Times In FROM Clause

Jun 11, 2014

I have this update statement that I need to have joined by MSA and spec.

I keep getting an error.
Msg 1011, Level 16, State 1, Line 3
The correlation name 't1' is specified multiple times in a FROM clause.

Here is my statement below. How can I change this?

UPDATE MSA
SET [Count on Billed Charges] = (Select Count(distinct[PCS Number])
From MonthEnds.dbo.vw_All_Products t1
Inner Join MonthEnds.dbo.vw_All_Products t1 on t1.[MSA Group] = t2.[MSA Group] and t1.[Spec 1] = t2.[Spec 1])

View 3 Replies View Related

Reporting Services :: SSRS Matrix - Add A Column In A Matrix With A Variance

Aug 6, 2015

I got the following code to add a column in a matrix with a variance:

IIF(IsNothing(Previous(Sum(Fields!Amount.Value))) or Fields!year.Value=First(Fields!year.Value,"Category") or Previous(Sum(Fields!Amount.Value))=0,nothing,
(
(Fields!Amount.Value)
/Previous(sum(Fields!Amount.Value))
)
)

This code works fine, except that the first row of the matrix shows an #error

This happens with each matrix where I use this expression. A warning emerges:

rsruntimeerrorinexpression the value expression for the textrun Textbox43.Paragraphs[0].TextRuns[0]' contains an error.

Attempted to divide by zero.

The strange thing is that the part

Fields!year.Value=First(Fields!year.Value,"Category")
should prevent an error and I expect it to show 'nothing'

An screenshot of the table. (each color is a different category. Each row stands for 2013, 2014, 2015)

As you can see, all other 2013 rows show a blank cell, except the first row.

View 3 Replies View Related

A Matrix Above Two Charts. Right Chart Moves Depending On Matrix Growth ... ???

Jan 10, 2008

I have a Matrix table that expands to the right when choosing an amount of months to be shown. Under this matrix I have to Charts. The two charts are situated together, that is no space between them, and to the left of the report.

Now, if I choose a lot of months, say three years the matrix diagram will be huge to the right. The problem I have is that the second diagram, the one on the right, moves to the right depending on how big the report gets, and this is not good at all. The two charts are supposed to be all the way to the left.

How? Why does the right chart move?

Thanks in advanced
Kind Regards

View 1 Replies View Related

Matrix - Create Two Rows In A Matrix

Nov 26, 2007

Hello.
I hope to explain myself well - I want to make a matrix with two rows.
Lats say my data is this:
I hava a list of months and in every month I have a number of pepole and there age.
How can I show this in a matrix?
It need to be in a matrix since I need the columns to expand acording to the month but I don't know how to create two diffrent rows in my matrix.

The data should look like this:

10/06 11/06 12/06 01/07 02/07 03/7 04/07 .....
num 5 1 2 5 4 5 7 .....
age 16.1 25 18.5 14.8 25.5 20.5 18.5 .....

Thanks for any help.

View 3 Replies View Related

Filtering Through Matrix Or Groups In Matrix

Aug 21, 2007

I have a report thats fully functional. I just want to add a filter so that my "Visits" field only displays the Visits per day that are less then 6. When i try to filter out the matrix or the group, it tells me the datatypes are different . Something about int32. Its in a matrix, but i have seen this happen in a table too, so i guessing thats not the problem. I just want to be able to display the information for Sales Reps with less then 6 Visits. Any help, will be greatlly appreciated.

View 1 Replies View Related

Adding Columns To A Matrix Report That Don't Belong To The Matrix Columns Groups

Jan 2, 2007

Can we do this?



Adding more columns in a matrix report that don€™t
belong to the columns drilldown dimensions€¦



That is, for example, having the following report:

Product Family


Product

Country City Number of units sold





Then I
would add some ratios, that is, Units Sold/Months (sold per month) and other that
is the average for Product Family (Units Sold/Number of Product Family), for putting an example€¦ some
columns should be precalculated prior to the report so do not get into it, the
real problem I don€™t see how to solve is adding one or two columns for showing
these calculated column that doesn€™t depend on the column groups but they do
for the rows groups€¦




Any guidance
on that?


The only
way I am seeing by now is to set it as two different reports, and that is not
what my client wants€¦






Many
thanks,
Jose

View 4 Replies View Related

Second Matrix Blanks Out First Matrix

Jun 8, 2007

Hello,



I have a matrix in my report that is based on an MDX query. I copy-paste the matrix and then see the two matrices in the report and all is fine.

I then insert a group into the second matrix. When I run the report the second matrix appears as I would expect, but the cells are blank in the first matrix. Sometime all the data cells are blank, but not the totals.

I tried a similair thing with a table. I added a table based on the same MDX dataset and the cells in the matrix were also then blanked out.



I made sure that the matrices were not sitting on top of each or even in the same space.



The goal here is to show the same dataset but with different groupings. I thought of doing drilldowns, drillthroughs, etc. but this is the way they want to see the data.



Any ideas what I am doing wrong?



Thank you for the help.



-Gumbatman

View 4 Replies View Related

Help With Matrix

Jul 19, 2007

Ok, I am having a little trouble figuring out if this is possible...



At first it looked easy (It always does), but as I started messing with matrix groups, it seems that i cant be done in 1 matrix.



Here is the display I want:





Value 1 Value 2 Total

Period 1 Period 2 Var % Period 1 Period 2 Var % Period 1 Period 2 Var %

Row

Row

Row

Row





I was thinking of having 2 groups, and then add a column to the 2nd group to calculate the variance column, and have that total. I cannot seem to get it to do that.



This is the first time I have really pushed the matrix for more than the basics.



Any ideas?



Thanks!!

View 5 Replies View Related

Matrix Sum

Mar 3, 2008

Question # 1:

I have two matrices - Matrix A and Matrix B.

Is it possible to Add a cell in Matrix A to a Cell in Matrix B and output that value in Matrix C?


Question # 2:

Since I think the answer to #1 is NO, I'll ask this question.

I have a dataset which has duplicates which I can't seem to get rid of - I've tried the distinct keyword and it's a no go.
Is there a way to SUM NON-DUPLICATE values in a matrix. I've seen the COUNTDISTINCT function, but I don't think that's going to help me.

View 4 Replies View Related

Matrix Sum

Jun 14, 2006

hello

I have a count (bookings.id) as nobookings in my query, which returns a count of all specific classes for a member. In the matrix i have sum(fields!nobookings.value) which adds the bookings by class type (1 tennis, 2 golf, 3 cricket). Now i need the total of all classes by pmember (6 in this case). Can srs do this?

View 8 Replies View Related

Matrix Like Table

Apr 10, 2006

Hi Friends,

I am working on a sport site, where i have to create a Calender Like
thing  where i have to show which sport is avaible in which month,
we can have any numbers of sports as the club grow it can add 100s of
different sport to itself, so i was not able to understand how to make
a database for this kind of thing, can anyone please help


Games       - Jan     Feb      Mar      Apr      May     Jun       Jul        …..Dec
Cricket         
Yes     Yes     
Yes      No      
No         No     
  No       .....
Hockey          No  
   Yes      Yes     
No      No        
Yes      Yes      .....
Horse R        
Yes     No       
No        No     
Yes       Yes     
Yes      .....

 
Thanks in Advance
Regards
Viking

View 1 Replies View Related

Sorting A Matrix

May 19, 2006

I am trying to sort a matrix by column. I first tried adding an interactive sort to the column heading, but it either gave me a run-time error, or there was not response. I then tried adding sorting to the row groups, and that doesn't seem to work either. I feel I have done every combination of groupings and sort expressions. Has anyone been able to accomplish this?
Thanks,
Kris

View 1 Replies View Related

Matrix Reports

Apr 14, 2008

Is matrix reports in SSRS similar to the crystal cross tab reports, if so, I am trying to create my first report using reporting services in matrix report format, can you please send me a good reference I can use to create my first report. Thanks!

View 1 Replies View Related

Add Matrix Column

Oct 17, 2007

hello there,

how can i add column datas together or merge two columns together.

cheers
zolf

View 3 Replies View Related

How To Get Covariance Matrix

Jul 23, 2005

Hi All,I have the table as followscolumn1 ---------------------------------column2-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------column3-------3 -1.149,3.571,17.978,4.706,8.28,-5.988,-5.65,7.273,10,-7.975,0.617,-9.497,5.917,-1.744,-7.027,29.371,0,2.878,-2.113,0,-16.471,-10.526,-2.062,-2.513,-0.995,-12.987,0.435,4.072,12.183,-3.902,-4.651,25,-7.027,8.824,-15,-3.846,-4.587,-7.234,-5.242,16.432,0.472,-0.61832692307692316 1.649,2.768,3.474,-0.746,-0.186,1.129,-1.801,-0.46,5.634,1.429,0.995,-1.131,-2.959,1.946,3.266,0.404,2.588,-0.31,0.938,-0.26,-1.333,-1.215,-0.554,-1.194,-2.304,-0.223,1.576,-1.932,2.425,-4.67,0.617,0.333,0.962,-1.59,-0.066,3.575,-1.018,3.357,0.372,3.627,-10.28217307692307723 7.042,1.429,11.111,-13.103,-3.974,-1.948,6.207,2.113,-0.699,0.704,1.429,0,-2.098,2.143,0,1.449,-1.429,-6.667,13.636,-8.966,1.399,2.143,-9.091,-3.75,-5.882,10.39,-5.521,-13.757,2.717,-2.128,2.174,0,-8.911,12.222,-10,3.093,-3,7.527,0,-2.105,2.151,-7,-0.99,0,-0.53159615384615425 0.542,0.63,0.549,-2.148,4.534,0.13,2.436,-10.432,0.599,4.854,4.871,2.519,-3.306,5.362,-4.716,0.837,11.487,-5.869,-2.523,8.187,-6.087,-8.232,1.061,-6.914,-5.7,-5.058,-4.202,13.982,-1.559,4.282,-1.868,5.414,-4.728,-2.737,-2.592,-8.441,-2.091,-5.341,-1.516,4.-0.194057692307692From The above result pane i want to get a covariance matrix fromcolumn2 and column3.Here column3 can be be taken as "Mean"please help .It's an urgent deliverable.Immediate response is highly appreciated.

View 1 Replies View Related

Sub-Total % In Matrix

Jan 15, 2008

I'm trying to get to something like this:










New York
London
Paris


M
F
M
F
M
F

2007 Wk 31
59%
41%
69%
31%
64%
36%

2007 Wk 32
63%
37%
67%
33%
66%
35%

2007 Wk 33
61%
39%
71%
29%
66%
34%

The problem that I have is that I can reference the total for the row: SUM(Fields!total.Value, "matrix_rpt_week") but I don't know how to reference the sub-total for the relevant group (eg London). Once I have this I can use it as the divisor in my calculation. I've tried using InScope but can't get it to return the value I need. Any ideas?

View 15 Replies View Related

Sum And Aggregation In A Matrix

Jun 14, 2007

Hello,



I have a matrix where I count number of employees per country, per product line.

The calcul is a simple sum :

(sum(Fields!ID__T_E_Employee_Distinct.Value)).



My report is correct at week level:

March 2007

W9 W10 W11 W12 W13

Product_Line1 17 17 17 17 17

Country Product_Line2 4 4 5 5 5

Product_Line3 25 25 26 25 25

Product_Line4 12 12 12 12 12



However my report is false when I drill-up to month level.



I obtain:

March 2007

Product_Line1 85

Country Product_Line2 23

Product_Line3 126

Product_Line4 60



but I want to obtain:

March 2007

Product_Line1 17

Country Product_Line2 5

Product_Line3 26

Product_Line4 12



For information, my datasource is an OLAP cube.



I have tried to add scope in the sum function but it doesn't work...

Moreover the sum is mandatory for me at week level, but I can have max of the sum at month level.

How to do max of sum in SSRS (I can have only one aggragation function in an expression).



Any help is welcome.



Thanks.

Guillaume.



View 2 Replies View Related

Matrix - How To Calculate % Of Row?

Jan 31, 2007

Hi,

I wish to create a matrix with multiple rows in the main data cell and a subtotal at the end of the row. The first row in my matrix main cell is just a count of records, whereas the 2nd row is a % of the value in the 1st row compared to the total of that row. I have 5 columns in the matrix as below (ignore rounding issues):











Status
A
B
C
D
E
Total

01/01/2007
Number
9
32
3
13
0
57

% of Total
15%
56%
5%
24%
0.00%
100.00%

Can someone advise the best way to calculate the % cells in this example?

Thanks

View 8 Replies View Related

Sum Matrix Columns

May 31, 2007

Is there a way to sum columns in a matrix report as below?





Account 1 Account 2 Account 3



Group1 79

Customer 1 48

location A 7 4 5 16

location B 2 9 6 17

location C 4 8 3 15

Customer 2 31

location X 9 2 4 15

location Y 6 7 3 16

Group2 78

Customer 3 27

location I 6 3 5 14

location J 7 2 4 13

Customer 4 51

location P 4 5 8 17

location Q 3 9 7 19

location R 5 8 2 15



View 1 Replies View Related

Sub Total In Matrix

Nov 22, 2007

Hi

i am using Matrix in one of reports, every thing is cool, but i need one more sub column(like subtotal) which should display Percentage

Clearly
I developed report in following formate and working Fine

c1 c2 c3 c4 (subtotal)


Row1 1 2 2 2 7
Row2 0 1 2 3 6
Row3 0 1 3 4 8
(subtotal) 1 4 7 9 21


but what we need is
c1 c2 c3 c4 (subtotal) (%)


Row1 1 2 2 2 7 33.33% --- (i.e..((7/21)*100)
Row2 0 1 2 3 6 28.57%
Row3 0 1 3 4 8 38.09%
(subtotal) 1 4 7 9 21



Any Hint about this ?




View 4 Replies View Related

Matrix Question

Apr 30, 2007

I have a view that gives me the following information from some tables.

Cust # Cust Name Date Order Type

001 John Doe 20070401 OR1

002 Miss Doe 20070401 OR2

001 John Doe 20070402 OR2

002 Miss Doe 20070402 OR2



What I would like to do is set up a matrix type report. The report is by the last 6 rolling order dates, with some % columns. So two row examples might be



Cust# Cust Name 20070401 20070402 % (of last x = OR1) %(of last x = OR2)

001 John Doe OR1 OR2 50% 50%

002 Miss Doe OR2 OR2 0% 100%



Another column just like the last two % based off a 3rd type, and finally a total % column that simply adds the 3 columns up (should always equal 100%, just an error check)



First, can this be done with a matrix? I tried a table but it lists cust# twice, but I can be doing it wrong. I am ok doing this within the query if need be, if someone gives me a hint how



Thanks,

View 2 Replies View Related

Help With The Matrix Report

Mar 2, 2007

Hello All!

I developed a matrix SSRS report for a specific scenario, and the results look something like the example below. The result set is grouped by the date value, so for all records on that date in the first column I have just one value - 2/5/2007. The client would like to see a value for each cell in every row in the date column, so they can sort the results and do other manipulation in Excel. I tried to make it happen but I doesnt seem to work using the matrix. I would really appreciate if anyone has any suggestions on how to make it work. btw, it really has to be a matrix report :)

Thanks, everyone!















2/5/2007
Value 1
3604




Value 2
5250

Value 3
1281

Value 4
1612

Value 5
2861

Value 6
2135

Value 7
850

Value 8
5368

Value 9
1146

Value 10
2928

Value 11
1435


Value 12
195

Value 14
1414

Value 15
776

View 4 Replies View Related

Matrix Report

Jan 30, 2007

hello all,

I have to make matrix report,
my problem is that I have to make report like this picture:
http://img2.tapuz.co.il/forums/1_93196948.jpg

Is there is a way to make it?
do I need a subreport?


Any tips would be appreciated Thanks

View 2 Replies View Related

Matrix Problem

May 8, 2008



I am trying to base a matrix on the following SQL
SELECT reftblTestTypes.TestTypeDescription, DATENAME(MONTH, tblTests.DateCreated) AS Month, COUNT(tblTests.TestId) AS TotalTests
FROM tblTests INNER JOIN
reftblTestTypes ON tblTests.TestTypeId = reftblTestTypes.TestTypeId
WHERE (YEAR(tblTests.DateCreated) = 2008) AND (MONTH(tblTests.DateCreated) = 4)
GROUP BY reftblTestTypes.TestTypeDescription, DATENAME(MONTH, tblTests.DateCreated)
ORDER BY Month

This produces 3 rows:
TestTypeDescription Month TotalTests
Antibody Screening April 1
Crossmatch April 3
HLA Class 1 April 3

The data is correct from my examination of tblTests

The construction of the matrix is:
=Fields!Month.Value
=Fields!TestTypeDescription.Value =Fields!TotalTests.Value


When I preview the report all I see is:





April
Antibody Screening 1

The Crossmatch & HLA Class 1 totals do not appear.

A warning message of:
"[rsNonAggregateInMatrixCell] The Value expression for the textbox €˜textbox4€™ references a field outside an aggregate function. Value expressions in matrix cells should be aggregates, to allow for subtotaling."
appears. textbox4 is the one populated by =Fields!TotalTests.Value

Ultimately the report will give totals for each month in a given year but I've restricted it to April whilst I get it working.

Can anyone tell me what I'm doing wrong?

View 4 Replies View Related

How To Add A Column In The End Of Each Matrix Row?

Feb 25, 2008

Hi,

I've a report containing a matrix. I want a column on end of each row in matrix, which shows me sum of that row. Is it possible in matrix? if yes, how can i achieve it?

View 4 Replies View Related

Matrix Subtotal

Jul 23, 2007

Hi Everyone,



I am trying to get something like this using matrix in reporting services












SE
CP
CG
Total

Qty
Value
Qty
Value
Qty
Value
Qty
Value
GST
Net

7/07/2006
124
233
552
525
141
2544
563
4215
321
4536

8/07/2006
1245
211
11
142
555
1444
1987
1854
124
1978







The problem is, in the total group, the GST value and Net ( Net = Value + GST) can't added into the total group in the matrix.



Can somebody help... Thanks a lot.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved