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: 
Not applicable

What is wrong with this expression? Trying to get items in the past 30 days

I am trying to pull back a list of projects created in the past 30 days along with a couple of other conditions.  What is wrong with this expression?   Sum({$<CostGrp_IsActive = {'Yes'}, Trans_Type= {'D'},CostGrp_IsDetailed={'Detailed'},Created_Date >= {Date(Today()-30,'YYYY/MM/DD')}>}CostGrp_Contract_Amt)

1 Solution

Accepted Solutions
mkelemen
Creator III
Creator III

Hi,

I think you need to use

Created_Date = {">=$(=Today() - 30)"}

BR,

  Matus

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

Try below

Sum({$<CostGrp_IsActive = {'Yes'}, Trans_Type= {'D'},CostGrp_IsDetailed={'Detailed'},Created_Date = {">=$(=Date(Today()-30,'YYYY/MM/DD'))"}>}CostGrp_Contract_Amt)

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

Hi,

I think you need to use

Created_Date = {">=$(=Today() - 30)"}

BR,

  Matus

Not applicable
Author

Thank you very much, however this resulted in no records coming back.

Not applicable
Author

Thank you, this worked perfectly.