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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

syntax issue

=Dual(Replace(Class({<field={'Value1'}>}field,Range2),'<= x <', '-'),Class({<field={'Value2'}>}field,v_Range2))

am getting a syntax error in this,highlighted in pink,

how to resolve this.

5 Replies
petter
Partner - Champion III
Partner - Champion III

You are trying to use a set expression with a function that is not an aggregate function.

Set expression may only be used with aggregation functions. The Class()-function is not one of those. So that is why you get a syntax error in your expression....

niclaz79
Partner - Creator III
Partner - Creator III

Anil_Babu_Samineni

The set analysis is used when you have Aggregate functions like Sum, Count, Max and Min.. But, You may try this? Before attempt think which object it is, For sure this is not a dimension and Script

=Dual(Replace(Class(Only({<field={'Value1'}>}field),Range2),'<= x <', '-'),Class(Only({<field={'Value2'}>}field),v_Range2))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

this expression is written in dimension tab

Anil_Babu_Samineni

Will make one shot for you, Would you like to attach sample?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful