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: 
samuel_rodrigue
Contributor III
Contributor III

SUM AGGR HELP

Hi everyone!

I need sum the value per sales order(ORDEM_VENDA) and compare with one value per produtct(CODIGO_ITEM), then give an average of dates, can anyone help me please?

my try:

if(
AGGR ( sum({< STATUS2 = {'FATURADO'}, EMPRESA = {'FISA'}, DEPOSITO = {'A01'}, OC_CLIENTE -= {"*PROG*"} >}
QUANTIDADE), ORDEM_VENDA,CODIGO_ITEM )
<= QTD_MAX_PRAZO,
avg({< STATUS2 = {'FATURADO'}, EMPRESA = {'FISA'}, DEPOSITO = {'A01'}, OC_CLIENTE -= {"*PROG*"}>}

DATA_NFF_FATURA - DATA_CRIACAO_LINHA))

 

thanks.

0 Replies