[Last Call] Learn how to a build a cloud-first strategyRegister Now


SSIS iterate through dataset transformation

Posted on 2011-05-10
Medium Priority
Last Modified: 2012-05-11
Creating my first SSIS package to transform an Excel file and doing ok with most things (Have already written an Excel VBA to do this, but attempting to recreate in SSIS instead)

So far I have got the format I want through data flows and transformations, but I now need to iterate through the dataset and add a row with certain data, every time the date or employee id changes.  Data is sorted fine.

I have attached a small sample data (already transformed) with privacy information removed. output3.csv

When column A or column H changes I need to add a record. (Column A is employeeid, Column H is shift date)  

Example row 9 I need to add a record with the date time from the first record in column K and the previous record in column L

ie - a shift for that agent from 9:30 to 16:45

And again whenever the date changes - or the employeeid changes

Any suggestions on the best way much appreciated
Question by:Makrini
  • 2
LVL 21

Accepted Solution

Alpesh Patel earned 2000 total points
ID: 35735781
see image below. image
LVL 10

Author Comment

ID: 35872253
Apologies for the delay.  This pointed me in the right direction - thanks
LVL 10

Author Closing Comment

ID: 35872255

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question