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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combination of two dimension

Group_operatorsum

10<10

2

10<20

3

Is there any way to combine 10<10 and 10<20 and get the sum of 5?

What i would want to achieve is the table below

Group_operatorsum
10<10-205

Please help!!

4 Replies
Not applicable
Author

Hi

Below Table 10<10-20 as group operator not possible..

If u want Sum = 5 then take either Text Object or check Total in pivot/straight table..

Not applicable
Author

i'm using pivot table. It is not possible to combine the two operator into one? No way to do it this way?

Not applicable
Author

Hi,

we can get sum of value 5 into ione row but we can't get 10<10-20 autometically. so that we need to add calculated dimension =if(SubField(Group_operator,'<',1)=10,'10<10-20')

PFA.

Regards,

Kabilan K

Not applicable
Author

Hi PFA,

U can use the below script

Load SubField(Group_operator,'<',1)&'<'&Concat(SubField(Group_operator,'<',2),'-') as Group_operator, Sum(Sales) as Sales Group by SubField(Group_operator,'<',1);

Load * Inline

[Group_operator,Sales

10<10,2

10<20,3

20<30,4

20<40,5];

PFA.