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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
inoruoya
Partner - Contributor III
Partner - Contributor III

How i sum value between 30 days in each ID

i need to sum value in 30 days left from register date in each ID,

so i have data field "ID" and "RegisterDate" in table of  customer, and i have transaction of each customers paid on during  days. I use on this expression  "Sum({<Date={"<=$(=AddMonths(RegDate,1))"}>}PayAmount)"  , that expression return "0" ,but when i select in only 1 ID that can return in right sum value.

could you please help me for new expression for return result set on "No selection"

Labels (2)
1 Reply
vinieme12
Champion III
Champion III

Expressions are evaluated only once per chart and not once per row,

basically you cannot have a different formula for each row in your table, Since each of your IDs have a different start and end date, this is not possible

You will have to create a new field in your datamodel table to flag the last 30 days for each ID and then use the flag field in your calculations

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