Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
kishorj1982
Creator II
Creator II

AGGR Function

Hi All,

I need to show unit cost for max(DtDate) for combination of  branch plant and part number.

I used below formulae but no luck.

sum({<DtDate={'$(=max(aggr(max(DtDate),BranchPlant,PartNumber)))'}>} UnitCost)

Thanks

2 Replies
sunny_talwar

May be create a new field in the script like this

AutoNumber(BranchPlant&PartNumber) as NewField

and then try this

Sum({<NewField = {"=DtDate = Max(TOTAL <NewField> Aggr(DtDate, NewField, DtDate))"}>}UnitCost)

tresesco
MVP
MVP

May be using a straight table:

Dim1: BranchPlant

Dim2: PartNumber

Exp: FirstSortedValue( Aggr(Sum(UnitCost),DtDate), -DtDate)