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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cria variavel com set analysis

Quero colocar um setanalsys numa variavel, mas não está funcionando.


Se aplicar no grafico funciona, mas em variavel não provavelmente devido ao concat

sET vANOSEL = Concat(Distinct ANO_SELECAO,',');

set vMENSALIDADE_PAGAS = sum ({$<LOG_PAGAMENTO_MOVIMENTO={'Sim'}

                               ,ANO_MOVIMENTO={'$(vANOSEL)'}

                             >} VAL_MENSALIDADE_MOVIMENTO) ;

se a variavel estiver set vANOVEL = 2015 funciona
se o substituir a variavel e colocar o set analysis direto no gráfico também funciona, mas não quero repetí-lo

Labels (2)
2 Replies
Clever_Anjos
Support
Support

Mais de um valor quando estiver incluido em um Set Analysis deve estar delimitado por virgulas e "

Tente fazer

SET vANOSEL = '"' & Concat(Distinct ANO_SELECAO,'","') & '"';

Clever_Anjos
Support
Support

Já conseguiu solucionar? Se sim, marque uma das respostas como "Correta" e nos ajude a manter os foruns organizados