Solved

Making calculations in a SSIS package

Posted on 2006-07-06
5
648 Views
Last Modified: 2012-05-05
I'll try to explain this best I can.  I have a OLE DB Source that I run to an Aggregate that I then run to an OLE DB Destination.  I map the fields I want from the source to the destination and that's that.

I have two fields in particular from the source connection named RATE and FACE.  Both fields are DT_R8 datatypes.  Whatever that means.  They both are basically decimal values carried to the 4th digit.  (00.0000).  

Everything works very well getting my data out of the source and into the destination, however, somewhere along the path I need to do a calculation on the RATE and FACE fields.  The RATE field is already being mapped to the DECRATE field in the destination table and the RATE is already being mapped to the DECRATE field in the destination table.

I need to multiply the RATE field with the FACE field though and insert that into another field in the destination table called DECCERTBALDUE and I don't know how.

I am just beginning to learn to use SQL Server Business Inteligence so I really not very good with it yet.

ANY help is welcome.

Thanks,
0
Comment
Question by:lostboyinsofla
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Einstine98
Comment Utility
you need to create a calculated field and map it to your destination in SSIS
0
 

Author Comment

by:lostboyinsofla
Comment Utility
How do I do that?  I'm really just beginning with SSIS and don't know much of squat yet.
0
 
LVL 12

Accepted Solution

by:
Einstine98 earned 500 total points
Comment Utility
in the data flow section in the tools on the right-hand side there should be a "dervied column" object... use that...
0
 

Author Comment

by:lostboyinsofla
Comment Utility
Where in the hierchy do I put it?  Right now under Data Flow I have:
OLE DB Source
Aggregate
OLE DB Destination
0
 
LVL 12

Expert Comment

by:Einstine98
Comment Utility
after or before the aggregate depending on when do you want your data transformed...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now