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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
CaioMonteiro
Contributor
Contributor

Erro em Fórmula

Bom dia,

 

Estou com dificuldade ao programar um app no QlikSaaS que precisa me devolver a venda do último ano, porém está me devolvendo a mensagem de erro:

 

QlikSaaS.png

 

'Erro na Expressão

Error in set modifier expression

sum ({<(year([dataoperação])={'2023'}>}Total VLLIQ)

 

Já tentei fazer algumas alterações na fórmula, porém travei nesse erro, alguém tem alguma ideia do que possa ser ?

1 Solution

Accepted Solutions
PrashantSangle

Try below

Sum ({<(year([operationdate])={'2023'}>}Total VLLIQ)

there is additional ( before year & in set analysis, on left side of equal to "=", you can not use function like 

year(OperationDate) is not correct. You have to create Year field in Script only.

or use if to achieve to what you are looking for

for example

Sum(Total if(Year(Date)='2023',VLLIQ,0)).

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

2 Replies
PrashantSangle

Try below

Sum ({<(year([operationdate])={'2023'}>}Total VLLIQ)

there is additional ( before year & in set analysis, on left side of equal to "=", you can not use function like 

year(OperationDate) is not correct. You have to create Year field in Script only.

or use if to achieve to what you are looking for

for example

Sum(Total if(Year(Date)='2023',VLLIQ,0)).

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
CaioMonteiro
Contributor
Contributor
Author

Muito obrigado amigo ! Deu certinho a solução que você indicou, muito obrigado mesmo !