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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mwallman
Creator III
Creator III

Expression question

Hi I read in some QlikView documentation that:

date(max(ORDERDATE,'DD/MM/YYYY')) is 3 times faster than

max(date(ORDERDATE,’DD/MM/YYYY’) )

Can anyone please tell me why? This is better? There was no explanation when I read it at the time.

Labels (1)
1 Reply
petter
Partner - Champion III
Partner - Champion III

It is due to the fact that the aggregation is done directly on a field. And then the Date() function is performed once at the end of the aggregation.

The second expression is an aggregation that needs to perform the function Date() on a field during aggregation. This slows it down - naturally.