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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart Aggregation Function

Is any one have idea that how to calculate this in aggregation function.

Sum((Max(EndDate)-MAX(StartDate)))

This is not working in my Calculation and return nothing.

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Where you are using this expression, in chart?  Can you provide some sample data, it is difficult to understand without data.

Regards,

Jagan.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you nest aggregation functions like sum and max you need to use the aggr function:

sum(aggr(max(EndDate)-max(StartDat),Dim1,Dim2,...,DimN))

Replace Dim1,Dim2,...,DimN with the dimensions of your chart,


talk is cheap, supply exceeds demand