Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
inescastelhano
Partner - Creator II
Partner - Creator II

Date subtraction in set analysis

Hello everyone,

I have a problem in a set analysis expression: I want to know if a certain date is less than 2 days from now.

This is supposed to be the expression: [myDate]-ReloadTime()<2

This is my set analysis expression, but it does not work.

=sum({< [myDate]-Date(ReloadTime())={'<$(=2)'}>}[Count Sales])

Any help would be appreciated.

Cheers,

Ines

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=Sum({<myDate = {"=myDate - ReloadTime() <=2"}>}[Count Sales])

View solution in original post

4 Replies
Clever_Anjos
Employee
Employee

=sum({< [myDate]={'<$(=Date(ReloadTime()-2))'}>}[Count Sales])

sunny_talwar

May be this:

=Sum({<myDate = {"=myDate - ReloadTime() <=2"}>}[Count Sales])

inescastelhano
Partner - Creator II
Partner - Creator II
Author

Hi,

Thanks for your answer. However, it does not work, as you can see in the following print screen:

Capture.PNG

Thanks in advance.

inescastelhano
Partner - Creator II
Partner - Creator II
Author

Now it works! Many thanks!