Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Allow user to change aggregations in a straight table

I have a straight table that a user can select which dimensions and metrics will be shown in the straight table. The totals are by the expression. The user would like to switch between a sum and an avg depending on which metrics they choose. Is there an easy way to let them do this since they will not be able to access chart properties? Perhaps a quick toggle?

11 Replies
MarcoWedel

just to prove that in most cases there is more than one solution in QlikView:

QlikCommunity_Thread_178948_Pic12.JPG

QlikCommunity_Thread_178948_Pic9.JPG

QlikCommunity_Thread_178948_Pic10.JPG

QlikCommunity_Thread_178948_Pic11.JPG

Transactions:

Load

TransLineID,

TransID,

Pick(Ceil(3*Rand1),'A','B','C') as Dim1,

Round(1000*Rand()*Rand()*Rand1) as Expression1;

Load

Rand() as Rand1,

IterNo() as TransLineID,

RecNo() as TransID

Autogenerate 30;

tabAggregations:

LOAD * INLINE [

    aggregation

    Sum

    Count

    Avg

    Min

    Max

    Only

    Mode

    Concat

    Stdev

    Sterr

    Median

];

hope this helps

regards

Marco

MarcoWedel

For independent expressions (e.g. with different parameters) you could also use an island table with selection name and expression fields or a Pick(Match(...)...) combination.

hope this helps

regards

Marco