Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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

1 Solution

Accepted Solutions
sunny_talwar

This worked

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

View solution in original post

14 Replies
sunny_talwar

What do you get when you use just this

$(vMoyenneAnnuelle)

and

vMoyenneAnnuelle

If one of these give you your 312, use that for the denominator.

vishsaggi
Champion III
Champion III

Try this?

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

Anil_Babu_Samineni

Can you try with this?

Num(Expression * 100 , '##.#0%')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MauriceLudo
Creator II
Creator II
Author

-  $(vMoyenneAnnuelle) : give me 312

- vMoyenneAnnuelle : nothing

But I use this expression already, as mentioned above

MauriceLudo
Creator II
Creator II
Author

does not work

MauriceLudo
Creator II
Creator II
Author

It is not the percentage display the problem

sunny_talwar

What do you see when you use it without the formatting?

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


Do you see 0.8653?

MauriceLudo
Creator II
Creator II
Author

document attached

MauriceLudo
Creator II
Creator II
Author

0.024038

This is my problem