Crosstab with two fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is is possible to create the following report using Part Number for column
headings, code for row headings, and quantity and hours for fields to
summarized. Grazie!


Part#1 Part#2 Part#3 Part#4
Qty Hrs Qty Hrs Qty Hrs Qty Hrs
Code1
Code2
 
You need a totals query that concatenate the sum of QTY and sum of HRS into a
single field.
 
SELECT Tally.Code, Tally.Part, Sum(Tally.QTY) AS SumOfQTY, Sum(Tally.HRS) AS
SumOfHRS, Sum([QTY]) & " - " & Sum([HRS]) AS [QTY-HRS]
FROM Tally
GROUP BY Tally.Code, Tally.Part;

TRANSFORM First(TallyInput.[QTY-HRS]) AS [FirstOfQTY-HRS]
SELECT TallyInput.Code
FROM TallyInput
GROUP BY TallyInput.Code
PIVOT "Part" & [Part];
 
you guys are crazy i think

you need TWO crosstabs and then you join them together
 
How do you join two crosstab queries?

Did you try my solution before replying?
 
uh you can join them together if they have common keys and the same
granularity.
 

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

Back
Top