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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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
Partner - Champion III
Partner - Champion III

Hi,

Try this

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

Regards,

Jagan.