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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Aggregation help

Hi all,

I have another aggregation problem..

in the attached QVW i have 2 straight tables..

The top one is a summary by customer and the bottom one is a breakdown by customer, item and period.

The PVI expression in the bottom chart gives the correct number. I am trying to get the same number in the PVI expression of the top chart but i am struggling to get it working.

Can anyone help please?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Sum( {<Period={"<=$(=GetFieldSelections(Period))"}>} Aggr(


(sum({<Period={"<=$(=GetFieldSelections(Period))"}>}[Standard Cost])

-

sum({<Period={"<=$(=GetFieldSelections(Period))"}>}[Latest Cost]))

*

sum({<Period={"<=$(=GetFieldSelections(Period))"}>}[Sales Volume])


,[Standard Cost],Period,Item,[Customer Name]

))

View solution in original post

2 Replies
tresesco
MVP
MVP

Sum( {<Period={"<=$(=GetFieldSelections(Period))"}>} Aggr(


(sum({<Period={"<=$(=GetFieldSelections(Period))"}>}[Standard Cost])

-

sum({<Period={"<=$(=GetFieldSelections(Period))"}>}[Latest Cost]))

*

sum({<Period={"<=$(=GetFieldSelections(Period))"}>}[Sales Volume])


,[Standard Cost],Period,Item,[Customer Name]

))

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

thanks very much!