Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
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
swuehl
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
jagan
Luminary Alumni
Luminary Alumni

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.

Not applicable
Author

it still isnot work

Anonymous
Not applicable
Author

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

Not applicable
Author

kirkleehuang‌ : I try your solution but It doesnt worrk

swuehl
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))

Not applicable
Author

Hi swuehl‌ ,

Thank you so muchhhh ......