Component Name | Two Days ago | Yesterday | Today |
Product Component X | 2 | 8 | 17 |
Product Component Y | 2 | 3 | 4 |
Product Component Z | 3 | 3 | 0 |
You generate these tables by dumping a list of bug IDs by component and Open Date, then making a Pivot Table. Easy. Well... I couldn't make Open Office's "data pilot" give me counts like "8" or "3". It had 100s of columns, each with a date at the top and a "1" somewhere down in the row that corresponded to a component. That's not that useful! I want rolled up counts! And yeah, I was marking "count" on the bug IDs. Oh well... We made the table today in about 3 seconds after pulling the data in Excel.
I was a little bummed out that we'd need to be using Excel for this until I got on the train today. I even looked online to see if there were any online pivot table generator websites or open source tools. And checked AppleWorks (I was desperate).
Or rather until NJT made me sit around on a platform at Penn Station waiting to get on a train (they called our track number and then 5 minutes later a train pulled up). While I was sitting around down there something in the back of my mind started saying "hey... this reminds you of data you've dealt with before". Well, yes. This is why I adore perl, gorgeous little data munging language that it is.
1. read in data
2. split lines so you have $date, $component, $bug ID
3. create %data{$date}{$component}=$count
4. print out your perl generated pivot table
5. profit
I felt like someone all of a sudden handed exactly the right tool. Bliss. And I kind of feel bad for people who want their data pivot tabled who don't know perl (;
No comments:
Post a Comment