how to count of issue with open status in spotfire -


i need calculate count of issue id each month open status. have below 3 columns-

issue_id issue_open_date issue_closed_date  issue_id    issue_open_date issue_closed_date   open_issue_count(required output) is_10   11/11/2014  1/5/2015    3 is_11   11/12/2014  12/14/2014   is_12   11/13/2014  11/15/2014   is_13   11/14/2014  3/5/2015     is_1    12/1/2014   12/15/2014  4 is_2    12/2/2014   2/10/2015    is_3    12/3/2014   1/15/2015    is_4    1/1/2015    2/10/2015   4 is_5    1/2/2015    3/11/2015    is_6    1/3/2015    1/22/2015    is_7    2/1/2015    3/5/2015    3 is_8    2/2/2015    2/2/2015     is_9    2/7/2015    2/28/2015    is_14   3/1/2015    4/5/2015    1 

based on above table, need count of open status of each month. lets suppose in december need count should check in dec , nov month. if issue closing in same month, mean not in open stage,

basically each month should check records , previous month records also. required output below- nov- 3 dec- 4 jan-4 feb-3 march-1

so... have way it's ugly. i'm sure there's better way spent while banging head on trying make work within spotfire without resorting python script looping through rows , making comparisons.

with nested aggregated case statements in cross table made work. it's pain in butt because it's pretty manual (have add each month) things have close date after month given , open date month or earlier.

< sum(case   when ([issue_closed_date]>date(2014,11,30)) , ([issue_open_date]<date(2014,12,1)) 1 else 0 end) [nov14_open] nest   sum(case   when ([issue_closed_date]>date(2014,12,31)) , ([issue_open_date]<date(2015,1,1)) 1 else 0 end) [dec14_open] nest   sum(case   when ([issue_closed_date]>date(2015,1,31)) , ([issue_open_date]<date(2015,2,1)) 1 else 0 end) [jan15_open] nest   sum(case   when ([issue_closed_date]>date(2015,2,28)) , ([issue_open_date]<date(2015,3,1)) 1 else 0 end) [feb15_open] nest   sum(case   when ([issue_closed_date]>date(2015,3,31)) , ([issue_open_date]<date(2015,4,1)) 1 else 0 end) [mar15_open]> 

screenshot:enter image description here

as far doing python loop through data , comparisons , save data table. if i'm feeling ambitious weekend might give try out of personal curiosity. i'll post here if so.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -