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: 
MauriceLudo
Creator II
Creator II

Set analysis variable

Hi,

Here is the expression to calculate the percentage

- count(DISTINCT {< Mois={'févr.'}, [Canal d'entrée]={'Accès web','Formulaire web'}>} [Prise de contact]) = 270

- $(vMoyenneAnnuelle) = count(DISTINCT {<[Canal d'entrée]={'Accès web','Formulaire web'}>} [Prise de contact])/ Count({<Année = {'$(=Max(Année))'}>} Distinct Mois) = 312

- num(count(DISTINCT {< Mois={'févr.'}, [Canal d'entrée]={'Accès web','Formulaire web'}>} [Prise de contact])/ $(vMoyenneAnnuelle),'00,##%') = 2.40%


or

- 270/312=86.53%

I can not identify the error, could you help me please?

Thank you

Maurice

Labels (1)
14 Replies
sunny_talwar
MVP
MVP

Which object are we doing this in?

MauriceLudo
Creator II
Creator II
Author

the first object

Thank you

sunny_talwar
MVP
MVP

I don't see this variable?

vMoyenneAnnuelle

Sorry, but I think your sample seems to be a little different then what you mentioned above. Would you be able to reconcile between the two?

MauriceLudo
Creator II
Creator II
Author

Sorry i have changed

the new variable vTestT

sunny_talwar
MVP
MVP

This worked

=(count(DISTINCT {< Mois={'févr.'}, [Canal d'entrée]={'Accès web','Formulaire web'}>} [(Ne pas modifier)Prise de contact]))/ ($(vTestT))