Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Sum(Aggr()) don't work in custom table

Hi all,

I have the following expression :

Sum(Aggr( Max({<Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} , Date={"$(vPriorDate)"}>} AccSales),StoreName))

This expression sum the total accsale all store. It is ok for text box and straight table. But I use for the custom table that isnt work.

Can anyone help me??

it's straight table

Capture2.JPG

it's the custom table

Capture1.JPG

Thank in advance.

1 Solution

Accepted Solutions
Highlighted
MVP
MVP

Maybe you get what you want using the TOTAL qualifier:

  //3

    ,Sum(TOTAL Aggr( Max({<Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} , Date={"$(vPriorDate)"}>} AccSales),StoreName))

View solution in original post

6 Replies
Highlighted
MVP & Luminary
MVP & Luminary

HI,

Try this

Sum({<Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} , Date={"$(vPriorDate)"}>}  Aggr( Max({<Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} , Date={"$(vPriorDate)"}>} AccSales),StoreName))


Regards,

Jagan.

Highlighted
Not applicable

it still isnot work

Highlighted
Contributor III
Contributor III

I think you create a new table and add expression again hope it works

Highlighted
Not applicable

kirkleehuang‌ : I try your solution but It doesnt worrk

Highlighted
MVP
MVP

Maybe you get what you want using the TOTAL qualifier:

  //3

    ,Sum(TOTAL Aggr( Max({<Quarter={"$(vPriorQuarter)"} , Month={"$(vPriorMonth)"} , WeekYear={"$(vPriorWeek)"} , Date={"$(vPriorDate)"}>} AccSales),StoreName))

View solution in original post

Highlighted
Not applicable

Hi swuehl‌ ,

Thank you so muchhhh ......