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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis Product using rate

Hello,

     I've a hierachical dimenssion composed of 3 dimensions (Direction commercial \ Nom Secteur \ Libelle Agence) and I would like to calculate the customers products using rate (<Count of Customer using a product> / <Count of customer at hierachical level>) for each level.

Can you help me to compute the count of customer for each level in table (red column) and chart .

Thanks

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

First, rename your group, I think GetCurrentField didn´t like your '>>' name

I renamed to HG_Maillage and used the below expression:

if(GetCurrentField(HG_Maillage) = 'Direction commerciale',

          count(total <[Direction commerciale]> [N-Personne]),

          if(GetCurrentField(HG_Maillage) = 'Nom Secteur',

                    count(total <[Nom Secteur]> [N-Personne]),

                    count(total <[Libelle Agence]> [N-Personne]),

          )

)

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try count(total <$(vG) > [N-Personne]) with a helper variable vG with value ='['&GetCurrentField([>>Maillage])&']'


talk is cheap, supply exceeds demand
Clever_Anjos
Employee
Employee

First, rename your group, I think GetCurrentField didn´t like your '>>' name

I renamed to HG_Maillage and used the below expression:

if(GetCurrentField(HG_Maillage) = 'Direction commerciale',

          count(total <[Direction commerciale]> [N-Personne]),

          if(GetCurrentField(HG_Maillage) = 'Nom Secteur',

                    count(total <[Nom Secteur]> [N-Personne]),

                    count(total <[Libelle Agence]> [N-Personne]),

          )

)

Not applicable
Author

It looks good. Thank you very much