Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Alguém poderia me auxiliar como deixar essa expressão correta:
Preciso juntar essas duas expressão, a primeira está ok, mas quando junto com a segunda só da erro...
"esta está ok" Sum(If(E5_CLASS='100',If(IsNull(CT2_VALOR),E5_VALOR,E5_VALOR*CT2_VALOR/CT2_ACMVALOR)))
E5_DTDISPO={'$(=Max(Date(E5_INDICE)))'}
Deu certo, muito obrigado.
"Sum({<E5_CLASS={'100'},E5_DTDISPO={"$(=Max(Date(E5_INDICE)))"}>}If(IsNull(CT2_VALOR),E5_VALOR,E5_VALOR*CT2_VALOR/CT2_ACMVALOR))"
Agradeço.
Olá Guilherme
Acredito que deveria ser assim
Sum
(
{<
E5_DTDISPO='$(=Max(Date(E5_INDICE)))'}
>}
If
(
E5_CLASS='100',
If
(
IsNull(CT2_VALOR),
E5_VALOR,
E5_VALOR*CT2_VALOR/CT2_ACMVALOR
)
)
)
A parte em negrito é o set analysis, e deve ser usada dentro da função de agregação (sum,avg,only,...).
Please try with this
Sum({<E5_CLASS={'100'},E5_DTDISPO={"$(=Max(Date(E5_INDICE)))"}>}If(IsNull(CT2_VALOR),E5_VALOR,E5_VALOR*CT2_VALOR/CT2_ACMVALOR))
Note: use English into this forum, there´s a Portuguese forum at Qlik Brasil
Sum ({<E5_CLASS={'100'}, E5_DTDISPO = { "$ (= Max (Date (E5_INDICE)))"}>} if(IsNull (CT2_VALOR), E5_VALOR, E5_VALOR * CT2_VALOR / CT2_ACMVALOR))
Deu certo sua expressão, só que dai zera meu valor de entrada entendeu? Será que não está faltando um if no começo?
Please put this expression into a straight table expression with no header.
Mouse over the header and check the format of $(=Max(Date(E5_INDICE)))
Deu certo, muito obrigado.
"Sum({<E5_CLASS={'100'},E5_DTDISPO={"$(=Max(Date(E5_INDICE)))"}>}If(IsNull(CT2_VALOR),E5_VALOR,E5_VALOR*CT2_VALOR/CT2_ACMVALOR))"
Agradeço.