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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
JohnIssue
Contributor III
Contributor III

Is there any way to do this grouping?

Let say I have one Category and one Subcategory, with values of a measure for each subcategory. I have a simple table, example:

Category   Subcategory   Measure

A                          A_1                  1

A                         A_2                   3

B                         B_1                   2

Can I add a measure that for each row shows the total of the sum of this measure for each category? In the previous example it would be: 

Category   Subcategory   Measure    Sum_Measure_Category

A                          A_1                  1                            4

A                         A_2                   3                             4

B                         B_1                   2                            2

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Refer this blog for more

https://community.qlik.com/t5/Design/What-does-the-TOTAL-qualifier-do/ba-p/1472990

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

use the TOTAL keyword

 

Sum_Measure_Category   =  sum(TOTAL <Category> Measure)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

Refer this blog for more

https://community.qlik.com/t5/Design/What-does-the-TOTAL-qualifier-do/ba-p/1472990

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
JohnIssue
Contributor III
Contributor III
Author

Thank you for your response! It works, but it seems like it is necessary that the dimension 'Category' is shown in the table. Is it possible to achieve this without showing this dimension?

Thanks in advance!

vinieme12
Champion III
Champion III

try below

=sum(total <Subcategory> aggr(noDistinct sum( Measure) , Category))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.