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: 
SK111
Contributor II
Contributor II

slow performance on aggr and if stmt

Hello Folks,

Appreciate your time. my expression below is very slow in Qlik table, do you suggest any alternatives

=Aggr(if((Min(cal_date) <= end_date) and (Max(cal_date) >= start_date), start_date), identifier)

 

thank you!

Labels (1)
2 Replies
MatheusC
Specialist II
Specialist II

@SK111 

Try putting your expression in the script, something like:

table:
LOAD
*,
identifier
IN [...]
(qvd);

left join (table)
load
identifier,
if(Min(cal_date) <= end_date and Max(cal_date) >= start_date, start_date) as start_date
resident test Group By identifier;

You can also see if the new window function is available in your version and work with it.
https://help.qlik.com/pt-BR/sense/November2023/Subsystems/Hub/Content/Sense_Hub/Scripting/WindowFunc...

Att, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
SK111
Contributor II
Contributor II
Author

Appreciate your reply. let me give a try. Thank you!