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

*** Need help with Aggr() Expression ***

Dear All,

I am stuck with an expression which works fine when I filter the data and it gives incorrect numbers when I dont filter the data. Here is the expression...

Dimension :

ParentID

Expression :

SUM(Aggr( (Unit_Cost) * sum(lCount), ItemId))


This works fine, when I filter on the Field ParentID (Which is my only dimension). However, if I dont filter on the ParentID it gives incorrect numbers. I am not sure where is the problem. Unfortunately I cant load the QV document because it contains sensitive information. Can someone please help...?

Thanks a ton in advance.

Cheers - DV

1 Solution

Accepted Solutions
danielrozental
Master II
Master II

Try

SUM(Aggr( (Unit_Cost) * sum(lCount), ItemId, ParentId))


View solution in original post

2 Replies
danielrozental
Master II
Master II

Try

SUM(Aggr( (Unit_Cost) * sum(lCount), ItemId, ParentId))


IAMDV
Luminary Alumni
Luminary Alumni
Author

Daniel – Thanks so much for quick response. This was a silly question... I went back last night and referred the documentation again and gotit working.

Cheers - DV