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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How I use total <>, when I change the position of dimensions

Hi all,
I have a problem when I use Total in expression, when I change the position of Dimension the value is wrong.

Example: in field of %

COUNT(DISTINCT CONTRACT)
/
COUNT( TOTAL <Address, Age , Sex> DISTINCT CONTRACT)

when I move dimensions (change position from <Address, Age, Sex> to < Sex, Address, Age>)
the sum total of % is wrong (not equal to 100).

Thanks,

2 Replies
Miguel_Angel_Baeyens

Hello,

Use a cyclic group with fields Address, Age and Sex fields, and then use it looking something like

Count(DISTINCT Contract) / Count(TOTAL <CyclicGroup> DISTINCT Contract)


Not applicable
Author

Hello Miguel,

Thank you very much for your response