Hello,
i recently discovered a little problem/challenge/opportunity(?) with an existing graph I wrote. We have some account data arriving in a flat file where the account numbers are shared potentially between multiple individuals. I thought the sortWithinGroups component would be ideal…I could group by account number and sort by last_name and first_name within the same account number, but I need to find a way to distinguish between the number of individuals within a group so sorted…Basically I need a counter of some kind added which will keep track of each individual within a given group for later reference and granularity…There isn’t anything in the input data to identify the number of individuals in the same group in a given file…Sample input
Account#, Last name, First name, Order_amount, etc…
123, Smith, John, 1000,…
123, Smith, Mary, 1000,…
123, Jones, Davey, 50,…
456, Bird, Larry, 10,…
456, Rogers,Ginger, 2000,…
789, Crosby,Bing, 300,…
The files will potentially have 1000’s of records
Needed output
123-1, Jones, Davey,50,…
123-2, Smith, John,1000,…
123-3, Smith, Mary, 1000,…
456-1, Bird, Larry,10
456-2, Rogers, Ginger, 2000,…
789-1, Crosby, Bing,300,…
All ideas are greatly appreciated,
Thanks
--Matt