Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Diere29
Contributor III
Contributor III

how to calculate and display a measure aggregated at a higher dimension than the table's current level in Qlik Sense?

 

I have a table in Qlik Sense (see the first image) that shows data for Division, Product, and Unit Retail Cost. I want to display a summarized version of this table (as shown in the second image) with the total Unit Retail Cost grouped by Division. When i remove the product column it nullifies my formals.  

I tried using the following formula, but it doesn't display any results:

sum(aggr(nodistinct sum({<[Product]=>} UK_IP_INVFIFO.Unit Retail Cost), Division))

What could be wrong with this formula, and hw can I fix it to achieve the desired summary?

what i have currently 

Diere29_0-1736868855851.png

what i want to achieve 

Division Unit Retail Cost
HOUSEWARES DIVISION 15
WOMEN'S DIVISION 39
1 Solution

Accepted Solutions
MatheusC
Specialist II
Specialist II

Hi, 

Try using the Total qualifier together with the Sum() function.


sum({<[Product]=>} Total <Division> UK_IP_INVFIFO.Unit Retail Cost)


- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

2 Replies
MatheusC
Specialist II
Specialist II

Hi, 

Try using the Total qualifier together with the Sum() function.


sum({<[Product]=>} Total <Division> UK_IP_INVFIFO.Unit Retail Cost)


- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Diere29
Contributor III
Contributor III
Author

Thanks a variable of this worked 🙂