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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
luis_pimentel
Partner - Creator III
Partner - Creator III

Use of aggregations within a dimension

Hi all,

I have the following scenario:

CategoryNumSales
A7102
A9101
A10103
A16100
B6105
B8106
B15104
B20107
C25108
C27109
C28110
C30111
D5120
D12115
D13116
D23114
D45113

And I am trying to get the following result:

CategorySales of MIN(Num) Other ExpressionsOthe Expressions
A102
B105
C108
D120

Which is the Sum of Sales for each category when Num is the minimum for that category.

I have tried all possible aggregations by Category and Set Analysis. None worked.

Note:

Having the Num field as a dimension is not an option. In addition, it is a must that the solution allows other expressions besides the one I am requesting help for.

The following expression works fine having Num as dimension, "Show zero values" checked and with only one expression in the chart, but as said that is not suitable for my scenario:


IF ( Num = AGGR(NODISTINCT MIN(Num), Category) ,SUM(Sales) )


Any ideas?

Thank you.

10 Replies
sunny_talwar

Awesome.

Best,

Sunny