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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problems with AGGR function

Hi all

I have to calculate the number of shipments aggregated by Adress and Shipping ID

The correct outcome should be 87. (in Excel)

I used this formula: =Aggr(count(LiefDatum), ShipID, AdrEmpf)

My result in QV is 1 😞

What's wrong? Would be nice if somebody could give me a tipp

Oliver

1 Solution

Accepted Solutions
rubenmarin

Hi Oliver,

almost correct, you only need to sum the different results of the aggr function:

=Sum(Aggr(count(LiefDatum), ShipID, AdrEmpf))

View solution in original post

5 Replies
ashwanin
Specialist
Specialist

Hi Oliver,

Please post some sample data.

rubenmarin

Hi Oliver,

almost correct, you only need to sum the different results of the aggr function:

=Sum(Aggr(count(LiefDatum), ShipID, AdrEmpf))

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi,

Try below expression

 

Sum

(Aggr(count(LiefDatum), ShipID, AdrEmpf))

maleksafa
Specialist
Specialist

why do you need to aggr, you can use normal count like =count(LiefDatum) and it will return 87, what is your need?

Not applicable
Author

Hi all

Thanks a lot!

Cheers

Oliver