Attached is a sample that shows almost exactly this. The basic idea is that you’ll have a loop looking at each line. At each line, it checks a series of conditions. Then it updates a total count (see the action script in each condition) and adds an item to the appropriate detail table.
Thank you, this is good information, but my detail lines are variable names. I am unable to look at static line description because the detail lines in my file could be Bob, Sue and Joe today and tomorrow they may be Tim and Carol. I also do not want to have a detail table that shows all records. I would like to only show the same name once and add all their lines together to show the total once.
Yep. In your case, rather than compare to static line descriptions, you’ll want to compare to the previous node, assuming they’re in order by name. So you’d store each one in a variable and when it gets to the next one, it would compare the current to the previous. If it’s the same, it keeps incrementing the total value. If it’s new, it makes a new extraction to set a new name in the detail and then starts incrementing the total in that new detail line.
You’ll probably have a lot more work to get this running than is strictly displayed in that example, but it should give you the building blocks you’ll need to piece it together.
As much as I would like to advise the GUI, I see no easy solution here except running a script in the Action step to generate the details records in the way that you want.I will see if I can write an example script showing how you could get there…