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: 
timmy
Partner - Contributor III
Partner - Contributor III

Set analysis sum field between calculated years

Hey,

I have the following formula:

=

sum( {1<Boekingsdatum = {">39941<40178"}>} [Prorata inkomsten] )

how can i change the 39941 with a calculated number; for example max(Date)?

Regards

Timmy





1 Reply
Or
MVP
MVP

You can use formulas in your set expressions using dollar-sign expansion. The following example is from the QV documentation:

sum( {$<Year = {$(#=Only(Year)-1)}>} Sales )

returns the sales for the previous year in relation to current selection. Here, a dollar-sign expansion is used to calculate previous year.