Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to create dynamic If statement

Hi Friends,

I need your help to resolve my scenario . I need to change the logical operator in IF condition dynamically based on user selection, for Example please refer the below.

IF(Count(Distinct PARENT_REF_ID) $(testcheck) 1000 ,0,1)

The above Example the Testcheck variable has logical operator . This variable getting value from list box so here if the variable value is grater than symbol(>) then condition should be check the distinct value is greater than 1000 then return 0 or 1 .

Please help me to resolve this .

Thanks & regards

Antom

3 Replies
swuehl
MVP
MVP

And what is your exact issue?

Above should / could work, as far as I see.

If it's not, then please post a small sample QVW that demonstrates your issue.

Not applicable
Author

Thanks Smuehi,

It's Working fine,

swuehl
MVP
MVP

Ok, then please close your thread as Assumed Answered.