Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

If condition in set analysis

I have an expression like below , basically i want all Active values in Col2 and Complete values in Col2 for Past 6 months , when these 2 conditions are satisfied i want to get values in Col3 , Can someone please help me put this in set analysis

If( Col1 >= Addmonths(Today()-6) and Col2 = ' Complete' and Col2 = 'Active', Col3 )

Thank you!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Nope, not a job for set analysis. Use an if statement.

If((Col1 >= Addmonths(Today(),-6) and Col2 = 'Complete') or Col2 = 'Active', Col3)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Any help on this please?

Gysbert_Wassenaar

Nope, not a job for set analysis. Use an if statement.

If((Col1 >= Addmonths(Today(),-6) and Col2 = 'Complete') or Col2 = 'Active', Col3)


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

oh .. is the above if statement right ? i am not sure how to define all Active values and only Complete values for past 6 months.