Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

rolling sum of above values in text object

Hi,

my requirement is I have an field D

example :

D

1

2

3

4

5

6

7

If i click any number from 1 to 7 I want get sum of all above numbers.

for example : If I select 4 i want get sum of all above numbers of 4 i.e.,1+2+3=6

in a text object.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be like attached sample? PFA

=Sum({<D={"<$(=D)"}>}D)

View solution in original post

5 Replies
Not applicable
Author

Hi Sara,

Well 1 approach is that, sort the field in ascending order and then assign the selected value to a variable and use below expression:

=sum({<Column1={"<$(Variable1)"}>}Column1)

Thanks

tresesco
MVP
MVP

May be like attached sample? PFA

=Sum({<D={"<$(=D)"}>}D)

Not applicable
Author

Sum({<FieldD={"<$(=Max(FieldD))"}>}FieldD)

v_iyyappan
Specialist
Specialist

Hi,

Try like this,

=Sum({$<D={"<$(=D)"}>}D)

by default it will show zero. when u select the "4" from D listbox. it will sum the 1+2+3= 6.

regards,

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

Sum({<DimensionName={'<$(=Max(DimensionName))'}>}DimensionName)

Regards,

Jagan.