Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

All values till a period

I have a question about set analyses. I have a field "amount" and the fields "year" and "period" and "Rubriek". What i want is when i select period in a listbox that QV calculates with all values till that period. I have my calculated field in a Textbox. And i want only records with rubriek 02.02.02
This is my formula :
sum({<Year={2011},Rubriek = {'02.02.02'},Periode = {'<=$(Periode)'} >}amount))
The problem is now QV give values of all periods and not only <= the selected period. When i select 9 i want all periodes till 9, and not for example period 10 and 11
Can someone help me ?
1 Solution

Accepted Solutions
Not applicable

Hello Francis,

I think you are very close to the solution:

sum( {<VPeriode= { "<=$(=max(VPeriode))" } >}        amount)

This is syntax-checked with my fields "VPeriode" and "amount"

HtH

Roland

View solution in original post

3 Replies
lironbaram
Partner - Master III
Partner - Master III

may be try somthing like this

sum({<Year={2011},Rubriek = {'02.02.02'},Periode = {"<=$(=maxPeriode))"} >}amount))

francisvandergr
Partner - Creator II
Partner - Creator II
Author

sorry this gives result '0'.  Is maxPeriode good not something max(Periode)

Not applicable

Hello Francis,

I think you are very close to the solution:

sum( {<VPeriode= { "<=$(=max(VPeriode))" } >}        amount)

This is syntax-checked with my fields "VPeriode" and "amount"

HtH

Roland