Guest_imported
New member
- Jan 1, 1970
- 0
In a graphic I have a crosstab query to count "recom" grouping by DESC_COD
If there is no recom in one year in graphic I dont'have this year.How can I have 0 (ZERO) in this case?
The query is:
TRANSFORM Count(grafico_recomendacoes.recom) AS CountOfrecom
SELECT (Year([DT_ABERTURA])) AS anos
FROM grafico_recomendacoes
WHERE (((grafico_recomendacoes.recom) Is Not Null))
GROUP BY (Year([DT_ABERTURA]))
ORDER BY (Year([DT_ABERTURA]))
PIVOT grafico_recomendacoes.DESC_COD;
Thanks a lot for your help
garrido
If there is no recom in one year in graphic I dont'have this year.How can I have 0 (ZERO) in this case?
The query is:
TRANSFORM Count(grafico_recomendacoes.recom) AS CountOfrecom
SELECT (Year([DT_ABERTURA])) AS anos
FROM grafico_recomendacoes
WHERE (((grafico_recomendacoes.recom) Is Not Null))
GROUP BY (Year([DT_ABERTURA]))
ORDER BY (Year([DT_ABERTURA]))
PIVOT grafico_recomendacoes.DESC_COD;
Thanks a lot for your help
garrido