Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dataexplorer
Contributor III
Contributor III

Aggr Function

Hello Qlik Community,

I was looking at a sample code provided by Qlik for Aggr function. When using the function with no qualifier, the result is being shown in the row highlighted. Looking at the table, my understanding is that the value should be in the row below the highlighted row, i.e., (Betacab,BB,12), which will be consistent with the other values in the field. Why is this happening? What am I missing to understand? 

dataexplorer_1-1710434790254.png

 

ProductData:

LOAD * inline [
Customer|Product|UnitSales|UnitPrice
Astrida|AA|4|16
Astrida|AA|10|15
Astrida|BB|10|15
Astrida|BB|9|9
Betacab|BB|5|10
Betacab|BB|7|12
Betacab|CC|2|22
Betacab|CC|4|20
Betacab|DD|25|25
Canutility|AA|8|15
Canutility|AA|5|11
Canutility|CC|0|19
] (delimiter is '|');

 

Labels (2)
1 Solution

Accepted Solutions
theoat
Partner - Creator III
Partner - Creator III

This is because the aggregation is done on 2 fields and not all the fields in the table. The highlighted line and the one below it are the same individuals in the aggregation.

You can use NODISTINCT

Enjoy your Qlik.

Kind regards,
Théo ATRAGIE.

View solution in original post

2 Replies
theoat
Partner - Creator III
Partner - Creator III

This is because the aggregation is done on 2 fields and not all the fields in the table. The highlighted line and the one below it are the same individuals in the aggregation.

You can use NODISTINCT

Enjoy your Qlik.

Kind regards,
Théo ATRAGIE.

dataexplorer
Contributor III
Contributor III
Author

Thanks for the explanation. Makes sense