Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

Qlikview formula related to dates

this is the data i have

 

   1/31/20172/28/20173/31/20174/30/20175/31/20176/30/20177/31/20178/31/20179/30/201710/31/201711/30/201712/31/2017
IDStart DateEnd Date1/1/20172/1/20173/1/20174/1/20175/1/20176/1/20177/1/20178/1/20179/1/201710/1/201711/1/201712/1/2017
A1-Jan-1715-Mar-17312817000000000
B5-Jun-174-Aug-17000002631280000
C8-Aug-174-Nov-170000000243031270


now in this data suppose the ID A start date is 1-Jan-2017
and end date is 15-Mar-2017

this means user A achieve policy on this specific time period so i want total days of these specific months

ie. from Jan they have 31 days then in Feb 28 days and in march 17 days .. because for jan 

he have start date 1-Jan-2017 and end date for jan is 31-Jan-2017 so here (1-31-2017)-(1-Jan-2017) +1
for Feb we have 2/28/2017 - 2/1/2017 +1
for march we have 3/31/2017-(15-March-201 )+1

In jan and feb they achieve policy full month but in march policy end in 15-March-2017 so they have remaining  17 days

 

now how i achieve this dates formula  through qlikview expression ?  any idea ? 

i attached qlik file 

1 Reply
capriconuser
Creator
Creator
Author

any help please