B
Bart
I have a cross tab query below:
Owners Group Total 1 Month 2 Months
Support A 2 2
Support B 1 1
I have 3 Owners Group namely "Support A", "Support B" and "Support C".
However "Support C" does not appear because there is no value for "1 Month"
and
"1 Months" field. But I want to show all "Owners Group" even there is no
value for "Support C". I want my crosstab query to looks like below
Owners Group Total 1 Month 2 Months
Support A 2 2
Support B 1 1
Support C 0 0 0
Here is the SQL:
TRANSFORM Val(Nz(Count(Computation.[Ref No]),0)) AS [CountOfRef No]
SELECT Computation.[Owners Group], Count(Computation.[Ref No]) AS [Total Of
Ref No]
FROM Computation
GROUP BY Computation.[Owners Group]
PIVOT Computation.NoOfMonth In ("1 Month","2 Months");
Owners Group Total 1 Month 2 Months
Support A 2 2
Support B 1 1
I have 3 Owners Group namely "Support A", "Support B" and "Support C".
However "Support C" does not appear because there is no value for "1 Month"
and
"1 Months" field. But I want to show all "Owners Group" even there is no
value for "Support C". I want my crosstab query to looks like below
Owners Group Total 1 Month 2 Months
Support A 2 2
Support B 1 1
Support C 0 0 0
Here is the SQL:
TRANSFORM Val(Nz(Count(Computation.[Ref No]),0)) AS [CountOfRef No]
SELECT Computation.[Owners Group], Count(Computation.[Ref No]) AS [Total Of
Ref No]
FROM Computation
GROUP BY Computation.[Owners Group]
PIVOT Computation.NoOfMonth In ("1 Month","2 Months");