Crosstab Zero Values

Joined
Jun 7, 2012
Messages
2
Reaction score
0
Thanks in advance for any help...

Could anyone fix this to show zero values in the "Total Of ID" column?

TRANSFORM (Count(Inventory.ID)) AS CountOfID
SELECT Inventory.[Patching Status], Count(Inventory.ID) AS [Total Of ID]
FROM Inventory
WHERE (((Inventory.[Patching Status])="ready to plan" Or (Inventory.[Patching Status])="Delayed" Or (Inventory.[Patching Status])="up to date" Or (Inventory.[Patching Status])="planned" Or (Inventory.[Patching Status])="up to date oos") AND ((Inventory.[Application Tab])="esx"))
GROUP BY Inventory.[Patching Status]
PIVOT Inventory.[Application Tab];


Thanks
Bobby
 
Joined
Jun 12, 2012
Messages
1
Reaction score
0
TRANSFORM (Count(Inventory.ID)) AS CountOfID
SELECT Inventory.[Patching Status], Iif(Count(Inventory.ID)>0,Count(Inventory.ID),0) AS [Total Of ID]
FROM Inventory
WHERE (((Inventory.[Patching Status])="ready to plan" Or (Inventory.[Patching Status])="Delayed" Or (Inventory.[Patching Status])="up to date" Or (Inventory.[Patching Status])="planned" Or (Inventory.[Patching Status])="up to date oos") AND ((Inventory.[Application Tab])="esx"))
GROUP BY Inventory.[Patching Status]
PIVOT Inventory.[Application Tab];
 

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