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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
deep2021
Creator III
Creator III

Set analysis expression is not working

Hi,

My below expression based on date difference is not working. Could you please assist me.

Sum( {<test_date={">=$(=Date(min(date(test_date))-(Interval(max(Date(test_date)+7)-min(Date(test_date)),'d'))))<=$(=Date(max(date(test_date))-(Interval(max(Date(test_date)+7)-min(Date(test_date)),'d'))))"}>}sales)

Thanks

Thanks.

Labels (5)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Try below; you can add days to a date directly,

Sum( {<test_date={">=$(=Date( min(test_date)-(( max(test_date)+7)-min(test_date)) )) <= $(=Date(max(test_date)-( (max(test_date)+7)-min(test_date)) ))"} >}sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

3 Replies
vinieme12
Champion III
Champion III

Try below; you can add days to a date directly,

Sum( {<test_date={">=$(=Date( min(test_date)-(( max(test_date)+7)-min(test_date)) )) <= $(=Date(max(test_date)-( (max(test_date)+7)-min(test_date)) ))"} >}sales)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
deep2021
Creator III
Creator III
Author

This is showing right results in the KPI object but not in the table. In table it is still showing current dates. Could you please assist me

vinieme12
Champion III
Champion III

can you post an app with some dummy data?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.