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: 
peschu123
Partner - Creator III
Partner - Creator III

Sum a range of values in set expression between 2 strings?

Hi,

the table looks like this:

Key1SubkeyValueStringID
10015null()1
10023Stringtostartfirstsum2
10037null()3
10041Stringtostopsum4
10053Stringtostartsecondsum5
10065null()6
10073null()7
10082Stringtostopsecondsum8

I want to do something like "sum all Values with Key1  where ID >= Stringtostartfirstsum and ID < Stringtostopsum, Table is already ordered and Key1 is dimension. In excel I would say subtotals...

Is it possible to sum the values in the chart via set/if expression or do I have to flag the values in script?

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.

Regards,

Jagan.

View solution in original post

2 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.

Regards,

Jagan.

peschu123
Partner - Creator III
Partner - Creator III
Author

Hi Jagan,

this exactly what I wanted. My approach was the same but I couldn't find a resource which describes how to create this expression with an "extra" attribute for ID.

Thank you very much, you made my day.

Best Regards,

Peter