Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accumulating values

I have this values for 5 offices in a month, the values are by day (1..31):

Day -->12345678910111213141516171819202122232425262728293031
Office 14471347303410155283119142814692411432311534273525021324
Office 22534424098161212162133272112513401547152135741192711274637
Office 34130203940918171124382424253031212632327628512040421132
Office 4223346413517471934431625273039611172915163713240115032232336
Office 51431222334849438431643422362664924412234225028193918353019

When I select any day (1..31), I need to show a table with 2 columns:

A. The values of the day selected.

B. The values accumulated between the day 1 through the day selected.

Examples:

Select day 1
Select day 9
Select day 23


1Acum
Office 14444
Office 22525
Office 34141
Office 42222
Office 51414


9Acum
Office 15205
Office 212198
Office 317187
Office 434294
Office 58250


23Acum
Office 115498
Office 235519
Office 36509
Office 413618
Office 522647

Thanks.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try these two expressions:

1: sum(Value)

Acum: sum({<Day={'<=$(=only(Day))'}>} Value)

Replace Value and Day with the actual names of your fields.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

Try these two expressions:

1: sum(Value)

Acum: sum({<Day={'<=$(=only(Day))'}>} Value)

Replace Value and Day with the actual names of your fields.


talk is cheap, supply exceeds demand