Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
MauriceLudo
Creator II
Creator II

Average annual percentage

Hi,

please, I would like to calculate the annual average and the total in percentage,

here is the expression used

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

count({< [Mois]={'$(=max([Mois])-1)'}, [Canal d'entrée]={'Accès web','Formulaire web'}>} [(Ne pas modifier)Prise de contact]))  -1,

I have no result,

the Screenshots Attachment.

Best regards

Maurice

4 Replies
jmartineze
Partner - Creator
Partner - Creator

hello, try this

num(

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

        count(

            if( [Mois]=max([Mois])-1 and

                     ([Canal d'entrée]='Accès web' or [Canal d'entrée]='Formulaire web' ), [(Ne pas modifier)Prise de contact]

              )

                 )-1,'##,00%')

Anil_Babu_Samineni

You expression looks okay, What you are consider as challenge.

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

Incorrect expression

MauriceLudo
Creator II
Creator II
Author

Calculate the annual average