Solved

Making calculations in a SSIS package

Posted on 2006-07-06
5
651 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
ID: 17055119
you need to create a calculated field and map it to your destination in SSIS
0
 

Author Comment

by:lostboyinsofla
ID: 17055174
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
ID: 17055187
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
ID: 17055262
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
ID: 17055510
after or before the aggregate depending on when do you want your data transformed...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

828 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