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

Date Variable Set Analysis

Help please,

I need to subtract one date from another (which is fine)

But the date that i am subtracting from is in a variable (vPeriodEnd), and my expression isn't working (it works fine with a standard field, its the variable that is causing me the headache). The date held within the variable is ok, as is the format.

any ideas?

if(

     only({<

          month=

          ,year=

          ,absence = {'Sickness'}

          ,census_date={'>=$(=$(vPeriodStart))   <=$(=$(vPeriodEnd))'}

     >}$(vPeriodEnd))

-

     only({<

          month=

          ,year=

          ,absence = {'Sickness'}

          ,census_date={'>=$(=$(vPeriodStart))   <=$(=$(vPeriodEnd))'}

     >}start_date)

> 28, 'Yes', 'No')

11 Replies
wonkymeister
Creator III
Creator III
Author

yes - all matched,

wonkymeister
Creator III
Creator III
Author

sorry guys - this was a total mistake on my part - the set was fine, the issue was with logic outside of the expression.

sorry guys and thanks to every one who contributed!