Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ajuda com SUM

Sum({$<maq={'BAIKAL'}>}acum)

Srs.

Tenho  a expressão acima que faz o seguinte.

soma o total produzido para a maquina acima descrita.

gostaria de fazer a mesma coisa mas somando somente o dia de hoje, poderiam me ajudar ?

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

There is a ) missing:

Sum({$<maq={'BAIKAL'},DIA_DATA={'$(=day(today()))'}>}acum)


3 parenthesis after today( ....

View solution in original post

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

what you need is a field that contains the daynumber, in my example is the field giorno, when you have it the expression is:


Sum({$<maq={'BAIKAL'}, giorno={'$(=day(today())'}>}acum)



Not applicable
Author

Muito Obrigado Alessandro !

Not applicable
Author

Alessandro ,

coloquei assim :

Sum({$<maq={'BAIKAL'},DIA_DATA={'$(=day(today())'}>}acum)

mas não está trazendo dados, poderia me ajudar ?

alexandros17
Partner - Champion III
Partner - Champion III

There is a ) missing:

Sum({$<maq={'BAIKAL'},DIA_DATA={'$(=day(today()))'}>}acum)


3 parenthesis after today( ....

eduardo_sommer
Partner - Specialist
Partner - Specialist

Bom dia, Kleberson

Para a obtenção do campo DIA_DATA, você também usou a função day() ?

Se você puder compartilhar o qvw, daria para ajudá-lo melhor.

Eduardo

Not applicable
Author

Man you're the best!

Thanks

Not applicable
Author

Obrigado Eduardo , mas o Alessandro já conseguiu me ajudar. mas valeu asssim mesmo

alexandros17
Partner - Champion III
Partner - Champion III

Thanks ....