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: 
saumyashah90
Specialist
Specialist

help for set analysis

i have var1,var2,field1.

i have condition if (var1>var2 and var1>'123' and var1<'456',concat(field1))

i kept it in set analysis in this way

concat(if({< var1>var2, var1>{'123'}, var1<{'456'} >}  field1)

it is showing error for 1st curly bracket.

8 Replies
sujeetsingh
Master III
Master III

See this may help you

saumyashah90
Specialist
Specialist
Author

I am good with two and conditions, only problem is with three or more and conditions

Not applicable

Hi,

i would rather write sth like

concat( {set}  if (var1 > var 2, field))

where set =  {< var1={">123 < 456"}  >}

In fact, I do not know if you may write the "var1 > var2" inside the set because there is already a limitation on var1.

Fabrice

jagan
Partner - Champion III
Partner - Champion III

Hi Saumya,

Try this

if (var1>var2 and var1>123 and var1<456,concat(field1))

Remove single quotes and check.

Regards,

Jagan.

saumyashah90
Specialist
Specialist
Author

Set thing is not working

saumyashah90
Specialist
Specialist
Author

nope not working

Not applicable

Hi,


Try this...


if(var1>var2,if(var1>'123',if(var1<'456',concat(field1))))


Regards,

Anju

jagan
Partner - Champion III
Partner - Champion III

Hi Saumya,

Can you attach some sample data so that it would be easier to solve.

Regards,

Jagan.