Crosstab query columns not adding correctly

J

Jen

I have a crosstab query based off of a table "tblClaims".

TRANSFORM (Nz(Sum(tblClaims.Count),0)) AS [The Value]
SELECT tblClaims.LOC, tblClaims.RvwRsn, Sum(tblClaims.Count) AS Total
FROM tblClaims
GROUP BY tblClaims.LOC, tblClaims.RvwRsn
PIVOT tblClaims.Report In ("C170","RC 85");

My end result should have one row of data for, example:
LOC RvwRsn C170 RC 85
72 BTMJ 25 10

But instead I am getting:
LOC RvwRsn C170 RC 85
72 BTMJ 25 0
72 BTMJ 0 10

Now I have done other more complex crosstab queries where I had the same
problem but resolved it based on how the table was set up. For this
instance, my table "appears" to be set up correctly:
LOC RvwRsn Count Report

Still I cannot get the data how I want it. Any thoughts???

Thanks.
Jen
 
J

Jen

Never mind...the RvwRsn field (from 2 different data sources) has extra
spaces from the one source. Used "Trim" and fixed it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top