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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculating index

Hi guys,

Trying to calculate an index value of the measures below but for some reason or another not really working? Works perfectly if no dimensions selected, but once i select a value it breaks as below:

GroupsMeasurement measure 1measure 2
Result 1268
3,57
  %
1,48
  %
Result 226812,08
  %
5,02
  %
Result 32688,20
  %
3,40
  %
Result 426831,28
  %
12,98
  %
Result 52688,07
  %
3,35
  %
Result 6268,88
  %
11,08
  %
4,60
  %
Result 726815,34
  %
6,37
  %
Result 826815,84
  %
6,57
  %
Result 926834,68
  %
14,39
  %
Result 1026811,88
  %
4,93
  %
Result 1126826,53
  %
11,01
  %
Result 122688,85
  %
3,67
  %
Result 132684,61
  %
1,91
  %
Result 1426819,03
  %
7,90
  %
Result 152682,34
  %
0,97
  %
Result 1626839,76
  %
16,50
  %

My script as follow for "Measurement". Each individually for "measure 1 and 2"

(Count({<flag_has_group={1},flag_third={1} >}DISTINCT id_table1)/
count({<flag_has_group={1},flag_third={1}>}DISTINCT TOTAL id_table1))
/
(
Count({<flag_has_group={1}>}DISTINCT id_table2)/
count({1<flag_has_group={1}>}DISTINCT TOTAL id_table2)))*100

1 Reply
Not applicable
Author

Markus,

may you share application with data sample.

This will be easier to help if we will be able to look on it.

regards

Darek