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

Max value of nested chart aggregation

Hello everyone :-),

so my pivot table is similiar to this one.

                                                              Fields

Area 1234
A91984356
B25335070
C28741214
D17526434
E14253219

This is allready displaying the sum  of the activity of parts that are stored in the area (a,b,c,d,e) in the corresponding field(1,2,3,4).

So the formula right now is just sum(activity). The dimensions are Area and Fields. I just want to get the highest value in the table.

So my first try was: max(aggr(sum(activity), Area, Fields)). But this just shows me the same values that are displayed above.

even max(total aggr(sum(activity), Area, Fields)) just calculates something, that i'm not able to understand.

At least if i use max(total <Area> aggr(sum(activity), Area, Fields)) i see this:

                         Fields

Area 1234
A98989898
B70707070
C74747474
D64646464
E32323232

But what i would like to see is:

                         Fields

Area 1234
A98989898
B98989898
C98989898
D98989898
E98989898

Need this in order to calculate a variable background colour with ARGB.

Hope someone can help me.

Kind regards

1 Solution

Accepted Solutions
moda1023
Contributor III
Contributor III
Author

After regarding my values again in a separate table, i noticed i had some null values.

So this did the trick for me :


max(total aggr(sum({<Area ={"*"}-{}>}activity),Area,Fields))

Maybe someone has a more elegant way of doing that.

View solution in original post

1 Reply
moda1023
Contributor III
Contributor III
Author

After regarding my values again in a separate table, i noticed i had some null values.

So this did the trick for me :


max(total aggr(sum({<Area ={"*"}-{}>}activity),Area,Fields))

Maybe someone has a more elegant way of doing that.