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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
danm84306
Contributor III
Contributor III

Sum of Value for Date - 30

Hello,

      I am looking for some Set Analysis help. I need to sum Dimension A only for dates that are the Max Date of Value B - 30 days. Nothing I am finding helps, any ideas?

something like

Sum({<Max(Date_B)-30>} Value_A)

1 Reply
andrey_krylov
Specialist
Specialist

Hi Dan, maybe this

Sum({< Date_B = {"=Rank(num(Date_B)) = 30"}>} Value_A)

or this

Sum({< Date_B ={"=Rank(num(Date_B )) <= 30"} >} Value_A)