Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Performance issue

I wonder how you could optimize the following expression:

Sum(If(Aggr(NODISTINCT Max([Date of Est.]), ID,[Year Quarter of Est.]) = [Date of Est.], COST))

I have 18 million rows, created by using a interval function, but where I have several rows within the same period of time.

But for the moment I am experiencing very slow response by using the above expression.

Anyone faced the same problem?

1 Reply
Not applicable
Author

I solved this by simply using FirstSortedValue.

sum(aggr(FirstSortedValue(COST,-Date ), ID,[Year Quarter of Est.] ))