Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_jagan
Partner - Creator
Partner - Creator

Advanced Aggregate

Hello,

Could some one let me know what is aggregate &  advanced aggregate functions and how to use it.

Thanks,

Jagan. V

2 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Aggregate functions are Sum, Max, Min, Avg etc., this are straight forward functions.

Aggr is an Advanced Aggregate function.

Difference between this two types are

Aggregation functions straight away calculate the value, where as Advanced Aggregate functions aggreates by given dimension.

For example

Sales:

LOAD * INLINE [

    BillNo, CostPrice, SellingPrice

    1, 1000, 1200

    2, 500, 650

    3, 200, 300

];

When we calculate Profit % (SellingPrice/CostPrice) by using

Aggregate functions:

= Sum(SellingPrice)/Sum(CostPrice) = 1.264 

Advanced Aggregation functions:

= Sum(Aggr(Sum(SellingPrice)/Sum(CostPrice), BillNo))  = 4 (1.2 + 1.3 + 1.5)

here the profit is calculated by billno and then it is summed up.

Hope this helps you.

Regards,

Jagan.

RedSky001
Partner - Creator III
Partner - Creator III

You could try looking in the QlikView Reference Manual, page 289 to be specific