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: 
eduardopicolli
Contributor
Contributor

Using Variables in Expressions

expressions.PNG

I have two variables called (vReferencia) and (vFamilia), but when i use (vFamilia) inside an expression with (vReferencia), it returns "-".

Where am i going wrong ?

Labels (4)
1 Solution

Accepted Solutions
Thiago_Justen_
MVP
MVP

Segue o app alterado para sua apreciação. Agora funciona.

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago

View solution in original post

13 Replies
Thiago_Justen_
MVP
MVP

Eduardo,

What is the expression for vReferencia? I guess we are able to text in portuguese, right?

Provavelmente sua expressão para vReferencia retorna mais de um valor possível e por isso no KPI ocorre esse '-'.

Deixe-nos avaliar sua expressão e dê mais detalhes, especialmente sobre o output esperado.

Abs e Sucesso!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
sunny_talwar
MVP
MVP

How about this may be

If(Len(Trim($(vReferencia))) > 0, $(vReferencia), $(vFamilia))

Thiago_Justen_
MVP
MVP

Hey stalwar1, what's up friend? Sometimes I think you are a kind of Qlik's robot. You're everywhere!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
sunny_talwar
MVP
MVP

You are not the only one that thinks that way ... I am good... how are you?

Thiago_Justen_
MVP
MVP

I'm doing good, man. Glad to see you here!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
eduardopicolli
Contributor
Contributor
Author

1.PNG

Seguinte, no primeiro exemplo eu tenho o meu campo Referencia filtrado com o valor '77650187' e na minha (vReferencia) ele retorna o valor certo, e na (vFamilia) o valor respectivo da sua familia. No segundo exemplo eu tenho o campo Familia filtrado, e ele deveria me retornar o valor da Familia.

eduardopicolli
Contributor
Contributor
Author

Heey, it doesn't work. Thanks!

Thiago_Justen_
MVP
MVP

Funcionou ou não? Hehe, você agradeceu mas disse que não funcionou?!?!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
eduardopicolli
Contributor
Contributor
Author

Não funcionou haha. Agradeci a tentativa!