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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
IAMDV
Master II
Master II

*** 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

Labels (1)
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
Master II
Master II
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