Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
yvonne-c
Creator
Creator

Rolling count between dates?

Can anyone help with counting the data in this table (sample attached)  into a table like the one below

IDDateOnDateOFF
A29/10/2015
B20/04/201820/04/2018
C20/04/201820/04/2018
D21/03/2013
J28-01-201707-05-2018

All IDs have a 'dateon' which will be counted unless there is a 'dateoff'

So ID A will be counted within all months below as it has been present for all of these months

J would only be counted in Feb- Apr as it was not present after May

I just need the


Thanks!

Total on
Feb 1814
Mar 1814
Apr 1814
May 1812
Jun 1812
Jul 1812
Aug 1812
Sep 1811
0 Replies