I have a use case where a CSV in a shared location is being updated daily by project manager(s). I'm attempting to build a bar chart showing offset from today using the data (I've got the visual working). I'm only interested essentially in the absolute most recent state of what is in the CSV. If something is added, a field is manipulated, or deleted, I just want the current state of the CSV.
Here's the current state of the search:
[the indexed csv] | eval start=strptime(Start,"%m/%d/%Y") | eval from=now() | eval int=strptime(Initializing,"%m/%d/%Y") | eval plan=strptime(Planning,"%m/%d/%Y") | eval exec=strptime(Execution,"%m/%d/%Y") | eval close=strptime(Closing,"%m/%d/%Y") | eval S = start - from | eval I = int - from | eval P = plan - from | eval E = exec - from | eval C = close - from | eval iDays=I / 86400 | eval pDays=P / 86400 | eval eDays = E / 86400 | eval cDays=C / 86400| eval Now= start - from | eval today=Now / 86400 | rename today AS Now, iDays AS 1-Intializing, pDays AS 2-Planning, eDays AS 3-Execution cDays AS 4-Closing | table Project 4-Closing 3-Execution 2-Planning 1-Intializing | dedup Project
Here is the format of the CSV:
Project Start Initializing Planning Execution Closing
1 9/15/2012 10/1/2012 10/5/2012 6/30/2013 7/15/2013
2 11/20/2012 11/30/2012 12/31/2012 4/30/2013 5/15/2013
3 3/6/2013 3/15/2013 4/30/2013 6/30/2013 7/15/2013
4 3/6/2013 3/15/2013 4/30/2013 6/30/2013 7/15/2013
5 12/1/2012 12/3/2012 3/31/2013 5/31/2013 6/15/2013
6 3/1/2013 3/15/2013 4/30/2013 6/30/2013 7/15/2013
7 8/1/2011 8/15/2011 12/31/2012 5/31/2013 6/15/2013
8 3/1/2013 3/5/2013 6/30/2013 7/31/2013 8/15/2013
9 9/1/2012 10/1/2012 2/28/2013 4/7/2013 4/15/2013
10 10/1/2011 10/15/2011 9/1/2012 7/15/2013 8/30/2013
11 8/1/2011 8/15/2011 12/31/2012 5/31/2013 6/15/2013
12 3/1/2013 3/5/2013 6/30/2013 7/31/2013 8/15/2013
Thanks in advance...
... View more