Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cumulative open days and count

Hi ,

please help me with this


Imagine that Notification No 1 was 2 days open end of Aug, and  Notification No  2 was 1 days open.

Sum is 3 days open Aug.

2 open Notification

Imagine that Notification No 1 was closed in Sep, Notification No 2 is still open end of Sep, but there was 1 new Notification created middle of the month.

End of Sep  the situation is:

Notification No 1: not be taken into consideration anymore

Notification No 2: 31 days open

Notification No 3: 15 days open

Cumulative open end of Sep  is 46 days.

2 open notification

Similar if completion date is not present it should be considered as open 

Notification NoCreated on DateCompletion by Date NewTotal No of Days OpenSales Divition
18/28/20139/30/20133310
28/30/201310/30/20136110
39/15/201311/30/20137610
410/29/201310/30/2013120
512/31/20132/28/201425720
61/29/2014 22820
71/31/20142/28/201422610
82/28/2014 19820
4 Replies
Not applicable
Author

Hi Mahesh,

The solution needs you to take snapshot of the situation at end of month. In the attached example, end of month is taken as last day of previous month.

Also, where completion date is not present, it is replace with Today's date (you can choose last date of the period in consideration)

Regards,

Kalpesh

Not applicable
Author

Hi Kalpesh,

Thank you, But in I need historical data like,This will give me  only current open status,

                    Aug 2013 Sep 2013 .... till current

open days       3              46

Count              2              2

Not applicable
Author

There are two ways to achieve this.

1. Have snapshot data stored in database(if available) at end of each period.

2. In Qlikview, Iterate the Notification table to generate data snapshot at end of each period.

  If you want that the output for a given period in time remains as is (i.e. we freeze the snapshot), you may store data for each period in qvds like Notification_201301.qvd , Notification_201302.qvd so on.

Finally, during current period, we load them all in the document (already calculated) and perform calculations just for current period.

Regards,

Kalpesh

Not applicable
Author

Hi Mahesh,

Here is the iterated Notification data for last 17 periods.

Hope this is what you are looking for.

Regards,

Kalpesh