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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

varibles

Hello Guys,

I have a long expression as you can see below :

count ({< Détail ={'Client Perdu','Client Remboursé','Client Retenu','Client Injoignable','Client Migré sans Rétention','Clt Mig sans Rétent'}, Nouveau_statut ={'Fermé Rétention', 'Fermé Rétention CltR', 'Fermé Rétention CltP','Fermé-remboursé','En étude conseiller','Réouverture'}, Spécialité ={'Menace','Mig vers l''offre AWAL Pré','Migration entre offres','Post-payé --> pré-payé','Migration de Forfait Bloqué','Résiliation contrat','Plan d''accompagnement','Changement Plan Tarifaire','Migration de Forfait Bloqué'} >}[Code cas])

can I put it in a variable and use it in other expressions?

if yes, how

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Then may be just put this in your variable definition

vVar

count ({< Détail ={'Client Perdu','Client Remboursé','Client Retenu','Client Injoignable','Client Migré sans Rétention','Clt Mig sans Rétent'}, Nouveau_statut ={'Fermé Rétention', 'Fermé Rétention CltR', 'Fermé Rétention CltP','Fermé-remboursé','En étude conseiller','Réouverture'}, Spécialité ={'Menace','Mig vers l''offre AWAL Pré','Migration entre offres','Post-payé --> pré-payé','Migration de Forfait Bloqué','Résiliation contrat','Plan d''accompagnement','Changement Plan Tarifaire','Migration de Forfait Bloqué'} >}[Code cas])

and then use it like $(vVar)

View solution in original post

4 Replies
sunny_talwar

Do you want to reuse some part of your expression (like set analysis) or the whole thing?

master_student
Creator III
Creator III
Author

the whole thing

RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Wiem,

Just copy the whole expression into a variable (CTRL+ALT+V) and use $(YourVariableName) wherever it's needed.

It's good practice to start variable names containing expressions with an "e" or "e_".

sunny_talwar

Then may be just put this in your variable definition

vVar

count ({< Détail ={'Client Perdu','Client Remboursé','Client Retenu','Client Injoignable','Client Migré sans Rétention','Clt Mig sans Rétent'}, Nouveau_statut ={'Fermé Rétention', 'Fermé Rétention CltR', 'Fermé Rétention CltP','Fermé-remboursé','En étude conseiller','Réouverture'}, Spécialité ={'Menace','Mig vers l''offre AWAL Pré','Migration entre offres','Post-payé --> pré-payé','Migration de Forfait Bloqué','Résiliation contrat','Plan d''accompagnement','Changement Plan Tarifaire','Migration de Forfait Bloqué'} >}[Code cas])

and then use it like $(vVar)