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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
smiling_cheetah
Creator
Creator

Daily sum based on a period

Hi folks,

I got to calculate daily Sum of Value based on IDs available on each date. Basically initial table looks like:

IDValueStartDateEndDate
110001.01.201704.01.2017
211001.01.201705.01.2017
312002.01.201703.01.2017
413001.01.201708.01.2017
514003.01.201705.01.2017
615006.01.201709.01.2017
716007.01.201709.01.2017
817005.01.201708.01.2017
920008.01.201709.01.2017
1030003.01.201705.01.2017

And as the outcome I need to get:

DateValue (Date>=StartDate and  Date<= EndDate)
01.01.2017340 (100+110+130)
02.01.2017460
03.01.2017900
04.01.2017780
05.01.2017850
06.01.2017450
07.01.2017610
08.01.2017810
09.01.2017510

Is it possible to do such calculation in visualization (not in the script?), and if not how can I incorporate this into the model (so when I choose a certain date, associated IDs which constitute the Value sum are selected) ?

Would appreciate any help

11 Replies
smiling_cheetah
Creator
Creator
Author

Thank you Sunny, tried both of those methods and both worked

smiling_cheetah
Creator
Creator
Author

it's sum of Values for IDs: 1, 2, 3, 4, 5, 10, so 100+110+120+130+140+300