Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with Addmonths

Hi folks, i´m having a problem with ADDMONTHS in a table graph.

I´have a simple structura like that:

[Codigos]:

CODIGO (INTEGER),

DT_COMPETENCIA_INICIAL (DATE);

CODIGOS.jpg

[Periodos]:

CODIGO (INTEGER),

DT_COMPETENCIA_ATUAL (DATE),

FL_ATIVO {S,N}

periodos.jpg

At column(1), i need count CODIGO that have DT_COMPETENCIA_ATUAL = DT_COMPETENCIA_INICIAL + 30

At column(2), i need count CODIGO that have DT_COMPETENCIA_ATUAL = DT_COMPETENCIA_INICIAL + 60

And so on...

tabela.jpg

Thank you so much,

Labels (1)
1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III