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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
kmswetha
Creator
Creator

Set analysis

Hi ,

I have to write the below condition in set analysis.

Today()-Run_date<=30.

How do I write this in Set analysis.

Regards,

Swetha

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

And what about this one?

{<Run_date = {"=(Today() - Run_date) > 30"}*{"=(Today() - Run_date) <= 60"}>}

View solution in original post

19 Replies
sunny_talwar
MVP
MVP

May be this:

{<Run_date = {"=Today() - Run_date <= 30"}>}

kmswetha
Creator
Creator
Author

This is working, But I Have to also add <=30 and >60.

Also can you explain me how this works?

sunny_talwar
MVP
MVP

How can the above be true? something can be less than and equal 30, but cannot be simultaneously greater than 60? Do you mean <=30 or >60??

kmswetha
Creator
Creator
Author

<30 and >=60

sunny_talwar
MVP
MVP

If I am right, try this:

{<Run_date = {"=(Today() - Run_date) <= 30 or (Today() - Run_date) > 60"}>}

kmswetha
Creator
Creator
Author

Sorry >30 and <=60.This is correct one,

sunny_talwar
MVP
MVP

Are you trying to get between 30 to 60?

sunny_talwar
MVP
MVP

Try this:

{<Run_date = {"=(Today() - Run_date) > 30 and (Today() - Run_date) <= 60"}>}

sunny_talwar
MVP
MVP

If this for some reason doesn't work, you can also try this:

{<Run_date = {"=(Today() - Run_date) > 30"}*{"=(Today() - Run_date) <= 60"}>}