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

Add values that exist in previous months to current month column

Hi, I hope someone could help me with my problem. 

I have some data, that i need to get into QlikSense and create some visualizations. First i only need a bar chart.

I have two columns with dates in it. One is "Dispatch date" and other is "On Stock" date. What i need to do is to Sum values in a column with "On Stock" date with the values that have "Dispatch date" greater than "On Stock" date. But this value also needs to have added values from previous "On Stock" date if the "Dispatch date" is greater than current "On Stock" Date. 

For example:  In the below picture with data on the right side you have column example with values. So 05.2020 would sum values from "Dispatch" 06 & 07 rows to the 05 Column in "On Stock" which adds up to 1300, but column 06.2020 would only sum the values from 07 Dispatch row to 06 On Stock column, which would add up to 1100. 

qlik_excel.jpg

Any help on this problem would be greatly appreciated.

Labels (2)
2 Replies
Kushal_Chawda

@sunkan  can you share sample data?

sunkan
Contributor
Contributor
Author

Hi, Yes i can share it. Data in the table below.

DispatchOn StockValue
01.202001.20200
02.202001.2020100
02.202002.2020200
03.202002.2020100
03.202003.2020300
04.202003.2020200
04.202004.2020100
05.202004.2020400
06.202004.2020300
07.202004.2020400
05.202005.2020200
06.202005.2020100
07.202005.2020500
06.202006.2020300
07.202006.2020200
07.202007.2020300