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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
AS_A
Contributor II
Contributor II

QlikView Set analysis

Hello,

Could you please help me to convert the below if condition to set expression? I'm also facing calculation timed out or out of memory issue.

if((if(Len(trim(field1))>0 and Len(trim(field2))>0, (AGGR(NODISTINCT(if(field3 = field4, output)),field3,field4,field2)),'N/A'))>0,

(if(Len(trim([field1))>0,(AGGR(NODISTINCT(if(field3= field4,output)),,field3,field4,field2)),'N/A')),'N/A').

Thank you 🙂

Labels (1)
3 Replies
Lisa_P
Employee
Employee

Can you please explain the result you are trying to achieve.

marcus_sommer

It seems that your data-model isn't suitable for this kind of query and the included fields have no respectively no proper association and the aggr() creates now some kind of cartesian product. Further all conditions are directly related to field-values and therefore they could be resolved within the script by creating one and/or several flag-fields.

Butler23
Contributor
Contributor

Is there any conclusion?

Cuyahoga County Auditor